From 4e152fcc138c0e8a11bac02261386a4671de9a2c Mon Sep 17 00:00:00 2001 From: "Marios S. Kyriakou" Date: Sat, 11 May 2024 13:37:50 +0300 Subject: [PATCH] minor fix. --- epyt/__init__.py | 2 +- epyt/epanet.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/epyt/__init__.py b/epyt/__init__.py index 0a73486..db86fe0 100644 --- a/epyt/__init__.py +++ b/epyt/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- __author__ = """Marios S. Kyriakou""" __email__ = "kiriakou.marios@ucy.ac.cy" -__version__ = "1.1.5" +__version__ = "1.1.6" __msxversion__ = "2.0.0" __copyright__ = """Copyright 2022, KIOS Research and Innovation Center of Excellence (KIOS CoE), University of Cyprus (www.kios.org.cy).""" diff --git a/epyt/epanet.py b/epyt/epanet.py index d3b3eaf..66ae298 100644 --- a/epyt/epanet.py +++ b/epyt/epanet.py @@ -15925,7 +15925,7 @@ def MSXopen(self, msxfile): if not os.path.exists(msxfile): raise FileNotFoundError(f"File not found: {msxfile}") - if display_msg: + if self.display_msg: print("Opening MSX file:", msxfile) msxbasename = os.path.basename(msxfile) err = self.msx_lib.MSXopen(c_char_p(msxfile.encode('utf-8'))) @@ -15934,7 +15934,7 @@ def MSXopen(self, msxfile): if err == 503: print("Error 503 may indicate a problem with the MSX file or the MSX library.") else: - if display_msg: + if self.display_msg: print(f"MSX file {msxbasename} loaded successfully.") def MSXclose(self):