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 7b5dc05 commit 9f3499a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions package/MDAnalysis/coordinates/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,14 +1664,7 @@ class SingleFrameReaderBase(ProtoReader):
def __init__(self, filename, convert_units=True, n_atoms=None, **kwargs):
super(SingleFrameReaderBase, self).__init__()

if isinstance(filename, NamedStream):
self.filename = filename
elif isinstance(filename, Structure):
self.filename = filename
else:
self.filename = str(filename)
if any(substring in self.filename for substring in ["MMTF", "Parmed", "OpenMM"]):
self.filename = filename
self.filename = filename

self.convert_units = convert_units

Expand Down

0 comments on commit 9f3499a

Please sign in to comment.