9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 03:23:29 +01:00

fix for bytes/string conversion

This commit is contained in:
Kevin Gasperich 2020-07-29 17:36:28 -05:00
parent ff9760b136
commit 5dd0a1c9bd

View File

@ -76,6 +76,8 @@ def convert_mol(filename,qph5path):
ezfio.set_nuclei_nucl_charge(nucl_charge)
ezfio.set_nuclei_nucl_coord(nucl_coord)
if isinstance(nucl_label[0],bytes):
nucl_label = list(map(lambda x:x.decode(),nucl_label))
ezfio.set_nuclei_nucl_label(nucl_label)
ezfio.set_nuclei_io_nuclear_repulsion('Read')