mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
convert is_periodic to bool in XYZ
This commit is contained in:
@@ -1248,9 +1248,9 @@ class XYZ(GenericMolFile):
|
||||
chemical_formula.append(block.get_chemical_formula())
|
||||
pbc = block.get_pbc()
|
||||
try:
|
||||
p = 1 if pbc else 0
|
||||
p = bool(pbc)
|
||||
except ValueError: # pbc is an array
|
||||
p = 1 if pbc.any() else 0
|
||||
p = bool(pbc.any())
|
||||
is_periodic.append(p)
|
||||
lattice_parameters.append(list(block.get_cell().cellpar()))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user