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 114294e commit a819c77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/MDAnalysis/coordinates/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,10 @@ class SingleFrameReaderBase(ProtoReader):
def __init__(self, filename, convert_units=True, n_atoms=None, **kwargs):
super(SingleFrameReaderBase, self).__init__()

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

self.convert_units = convert_units

Expand Down

0 comments on commit a819c77

Please sign in to comment.