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 17e55b0 commit 24529b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/MDAnalysis/topology/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import itertools
import numpy as np
import warnings
import parmed as pmd

from .. import _PARSERS, _PARSER_HINTS
from ..coordinates.base import IOBase
Expand Down Expand Up @@ -118,8 +119,11 @@ def __init__(self, filename):

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


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

0 comments on commit 24529b4

Please sign in to comment.