1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-10-02 14:31:05 +02:00

Fix a bug in the to_orbital_list [Python]

This commit is contained in:
q-posev 2022-05-19 17:16:20 +02:00
parent a976c78d63
commit 760d85612a

View File

@ -5474,7 +5474,7 @@ def to_orbital_list(n_int: int, determinant: list) -> list:
if len(orbital_list) < occ_num:
raise Exception("Inconsistent size of the orbital_list.")
return orbital_list
return orbital_list[0:occ_num]
def to_orbital_list_up_dn(n_int: int, determinant: list) -> tuple: