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 05e8c33 commit 37063a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/MDAnalysis/topology/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def __init__(self, filename):
}
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):
Expand Down

0 comments on commit 37063a1

Please sign in to comment.