Skip to content

Commit

Permalink
Merge pull request #37 from pnnl/md-refactor
Browse files Browse the repository at this point in the history
Overhaul MD code to support decoupling of separate run/parsing functionality
  • Loading branch information
smcolby authored May 1, 2024
2 parents b90ee9f + 2a539e8 commit f8d4b2a
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 352 deletions.
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

0 comments on commit f8d4b2a

Please sign in to comment.