Skip to content

Commit

Permalink
Add explanatory comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
greghjones committed Feb 20, 2024
1 parent cdec387 commit f2833aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysisyphus/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def geom_from_xyz_file(xyz_fn, coord_type="cart", **coord_kwargs):
kwargs.update(coord_kwargs)
xyz_fn = str(xyz_fn)
atoms, coords, comment = parse_xyz_file(xyz_fn, with_comment=True)
# Normally, xyz files are in Angstrom. If "IN_BOHR" is present
# in the comment, we interpret this file as in bohr.
if "IN_BOHR" not in comment.split():
coords *= ANG2BOHR
geom = Geometry(
Expand Down

0 comments on commit f2833aa

Please sign in to comment.