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:
parent
ff9760b136
commit
5dd0a1c9bd
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user