Skip to content

Commit 77f816e

Browse files
kousuke-nakanosunqm
authored andcommitted
I have fixed an unnecessary dependency in the pull-request #92 (See also TREX-CoE/trexio_tools@739317f).
1 parent fb0bed2 commit 77f816e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pyscf/tools/trexio.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,6 @@ def get_occsa_and_occsb(mcscf, norb, nelec, ci_threshold=0.):
460460
return occsa_sorted, occsb_sorted, ci_values_sorted, num_determinants
461461

462462
def det_to_trexio(mcscf, norb, nelec, trexio_file, ci_threshold=0., chunk_size=100000):
463-
from trexio_tools.group_tools import determinant as trexio_det
464-
465463
ncore = mcscf.ncore
466464
int64_num = trexio.get_int64_num(trexio_file)
467465

@@ -472,8 +470,8 @@ def det_to_trexio(mcscf, norb, nelec, trexio_file, ci_threshold=0., chunk_size=1
472470
occsa_upshifted = [orb for orb in range(ncore)] + [orb+ncore for orb in a]
473471
occsb_upshifted = [orb for orb in range(ncore)] + [orb+ncore for orb in b]
474472
det_tmp = []
475-
det_tmp += trexio_det.to_determinant_list(occsa_upshifted, int64_num)
476-
det_tmp += trexio_det.to_determinant_list(occsb_upshifted, int64_num)
473+
det_tmp += trexio.to_bitfield_list(int64_num, occsa_upshifted)
474+
det_tmp += trexio.to_bitfield_list(int64_num, occsb_upshifted)
477475
det_list.append(det_tmp)
478476

479477
if num_determinants > chunk_size:

0 commit comments

Comments
 (0)