From b05a72d742f6cdee9e90820f70665b363978b51d Mon Sep 17 00:00:00 2001 From: bieniekmat Date: Sun, 20 Aug 2023 19:42:41 +0100 Subject: [PATCH] removing hardcoded filename --- ties/ligand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ties/ligand.py b/ties/ligand.py index 9ef78f3..3257877 100644 --- a/ties/ligand.py +++ b/ties/ligand.py @@ -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