Skip to content

Commit

Permalink
Fix changed name
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart committed Nov 17, 2023
1 parent d347ad6 commit e07e292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wntr/network/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def msx(self):
def msx(self, msx):
if msx is None:
self._msx = None
from wntr.msx.base import AbstractQualityModel
if not isinstance(msx, AbstractQualityModel):
raise TypeError('Expected AbstractQualityModel (or derived), got {}'.format(type(msx)))
from wntr.msx.base import QualityModelBase
if not isinstance(msx, QualityModelBase):
raise TypeError('Expected QualityModelBase (or derived), got {}'.format(type(msx)))

def add_msx_model(self, msx_filename=None):
"""Add an msx model from a MSX input file (.msx extension)"""
Expand Down

0 comments on commit e07e292

Please sign in to comment.