Skip to content

Commit

Permalink
Backward compatibility issue in fci.cistring
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Feb 1, 2024
1 parent 0e0345b commit 16975b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyscf/fci/cistring.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def gen_occs_iter(orb_list, nelec):
return res
occslst = gen_occs_iter(orb_list, nelec)
return numpy.asarray(occslst, dtype=numpy.int32).view(OIndexList)
# Add this symbol for backward compatibility. Should remove in the future.
_gen_occslst = gen_occslst

def _strs2occslst(strs, norb):
na = len(strs)
Expand Down

0 comments on commit 16975b8

Please sign in to comment.