Skip to content

Commit

Permalink
removing hardcoded filename
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniekmateusz committed Aug 20, 2023
1 parent 9ebaaae commit b05a72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ties/ligand.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def suffix(self):

def uses_GAFF_atom_names(self):
assert self.current.suffix.lower() == '.mol2'
mol = parmed.load_file('ejm_55.mol2', structure=True)
mol = parmed.load_file(str(self.current), structure=True)
atom_types = {atom.type for atom in mol.atoms}
if len(atom_types - self.GAFF_ATOM_NAMES) > 0:
# there are names that are not GAFF atom names
Expand Down

0 comments on commit b05a72d

Please sign in to comment.