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 a819c77 commit aa27a59
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 @@ -1666,7 +1666,10 @@ def __init__(self, filename, convert_units=True, n_atoms=None, **kwargs):
if isinstance(filename, NamedStream):
self.filename = filename
else:
self.filename = str(filename)
if hasattr(filename, 'topology'):
self.filename = filename
else:
self.filename = str(filename)

self.convert_units = convert_units

Expand Down

0 comments on commit aa27a59

Please sign in to comment.