9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 19:43:32 +01:00

Fixed qp_convert

This commit is contained in:
Anthony Scemama 2023-01-09 11:00:07 +01:00
parent 1a12e7f308
commit b4f233ae85

View File

@ -162,11 +162,11 @@ def write_ezfio(res, filename):
# P a r s i n g # # P a r s i n g #
# ~#~#~#~#~#~#~ # # ~#~#~#~#~#~#~ #
prim_num_max = ezfio.get_ao_basis_ao_prim_num_max() prim_num_max = max(ezfio.get_ao_basis_ao_prim_num())
ezfio.set_ao_basis_ao_prim_num_max(prim_num_max)
for i in range(len(res.basis)): for i in range(len(res.basis)):
coefficient[ coefficient[i] += [0. for j in range(len(coefficient[i]), prim_num_max)]
i] += [0. for j in range(len(coefficient[i]), prim_num_max)]
exponent[i] += [0. for j in range(len(exponent[i]), prim_num_max)] exponent[i] += [0. for j in range(len(exponent[i]), prim_num_max)]
coefficient = reduce(lambda x, y: x + y, coefficient, []) coefficient = reduce(lambda x, y: x + y, coefficient, [])