mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-07 05:53:37 +01:00
Minor fix in trexio import
This commit is contained in:
parent
f9fdd1effd
commit
bb80a3c2a2
@ -459,6 +459,7 @@ def write_ezfio(trexio_filename, filename):
|
||||
beta = [ i for i in range(num_beta) ]
|
||||
if trexio.has_mo_spin(trexio_file):
|
||||
spin = trexio.read_mo_spin(trexio_file)
|
||||
if max(spin) == 1:
|
||||
beta = [ i for i in range(mo_num) if spin[i] == 1 ]
|
||||
beta = [ beta[i] for i in range(num_beta) ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user