Skip to content

Commit

Permalink
Allow nonstandard RXYZ strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgt16-LANL committed Apr 22, 2024
1 parent e804581 commit 0e5e797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion architector/io_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def convert_io_molecule(structure,
output.append(convert_io_molecule(ats))
return output
elif isinstance(structure,str) and (len(structure.split('\n')) > 3) and (structure.split('\n')[0].replace(' ','').isnumeric()) \
and ('FORCES' in structure) and ('ENERGY' in structure): # RXYZ string.
and (('FORCES' in structure) or ('ENERGY' in structure)): # RXYZ string.
mol.read_rxyz(structure,readstring=True)
# checking for number at start of string -> indicates xyz string
elif isinstance(structure,str) and (len(structure.split('\n')) > 3) and (structure.split('\n')[0].replace(' ','').isnumeric()):
Expand Down

0 comments on commit 0e5e797

Please sign in to comment.