Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Aug 6, 2024
1 parent 37063a1 commit 114294e
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions package/MDAnalysis/topology/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,7 @@ class TopologyReaderBase(IOBase, metaclass=_Topologymeta):
"""
def __init__(self, filename):

unwanted_substrings = {
"MMTF": None,
"Parmed": None,
"OpenMM": None,
"Parser": None,
"parmed": None,
"openmm": None,
"converters": None,
"Converters": None,
}
if isinstance(filename, util.NamedStream):
self.filename = filename
elif any(substring in type(filename) for substring in unwanted_substrings):
self.filename = filename
else:
self.filename = str(filename)
if any(substring in self.filename for substring in unwanted_substrings):
self.filename = filename
self.filename = filename

def parse(self, **kwargs): # pragma: no cover
raise NotImplementedError("Override this in each subclass")
Expand Down

0 comments on commit 114294e

Please sign in to comment.