Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
added parmed
  • Loading branch information
talagayev committed Aug 6, 2024
1 parent 8a1536b commit 768be41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/MDAnalysis/coordinates/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
import numpy as np
import numbers
import warnings
import parmed
from typing import Any, Union, Optional, List, Dict

from .timestep import Timestep
Expand Down Expand Up @@ -1665,6 +1666,8 @@ def __init__(self, filename, convert_units=True, n_atoms=None, **kwargs):

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

0 comments on commit 768be41

Please sign in to comment.