Skip to content

Commit

Permalink
attr test
Browse files Browse the repository at this point in the history
  • Loading branch information
TL231 committed Dec 6, 2024
1 parent c61d946 commit 05864f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qibochem/driver/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Molecule(object):
geometry = attr.ib(default=None, validator=attr.validators.instance_of(list))
charge = attr.ib(default=0, validator=attr.validators.instance_of(int))
multiplicity = attr.ib(default=1, validator=attr.validators.instance_of(int))
xyz_file = attr.ib(default=1, validator=attr.validators.instance_of(str))
if xyz_file is not None:
# Check if xyz_file exists, then fill in the Molecule attributes
assert Path(f"{xyz_file}").exists(), f"{xyz_file} not found!"
Expand Down

0 comments on commit 05864f3

Please sign in to comment.