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:
parent
a976c78d63
commit
760d85612a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user