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 3134525 commit c4cf85d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions package/MDAnalysis/topology/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,8 @@ class TopologyReaderBase(IOBase, metaclass=_Topologymeta):
Added keyword 'universe' to pass to Atom creation.
"""
def __init__(self, filename):

if isinstance(filename, util.NamedStream):
self.filename = filename
else:
self.filename = str(filename)

self.filename = filename

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

0 comments on commit c4cf85d

Please sign in to comment.