Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul MD code to support decoupling of separate run/parsing functionality #37

Merged
merged 15 commits into from
May 1, 2024
Merged
8 changes: 3 additions & 5 deletions isicle/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def __init__(self, **kwargs):
self.__dict__.update(dict.fromkeys(self._defaults, self._default_value))
self.__dict__.update(kwargs)

if self.charge is None:
self.charge = self.get_charge()
# if self.charge is None:
# self.charge = self.get_charge()

def get_basename(self):
"""
Expand Down Expand Up @@ -395,9 +395,7 @@ def get_natoms(self):

"""

natoms = Chem.Mol.GetNumAtoms(self.to_mol())
self.__dict__["natoms"] = natoms
return self.__dict__["natoms"]
return Chem.Mol.GetNumAtoms(self.to_mol())

def get_atom_indices(
self, atoms=["C", "H"], lookup={"C": 6, "H": 1, "N": 7, "O": 8, "F": 9, "P": 15}
Expand Down
2 changes: 1 addition & 1 deletion isicle/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def load_xyz(path, charge=None):
basename = os.path.splitext(os.path.basename(path))[0]

# Initialize Geometry instance
geom = isicle.geometry.Geometry(mol=mol, charge=charge, basename=basename)
geom = isicle.geometry.Geometry(mol=mol, basename=basename)

return geom

Expand Down
Loading
Loading