Skip to content

Commit 4e152fc

Browse files
committed
minor fix.
1 parent fa1bbfa commit 4e152fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

epyt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
__author__ = """Marios S. Kyriakou"""
33
__email__ = "kiriakou.marios@ucy.ac.cy"
4-
__version__ = "1.1.5"
4+
__version__ = "1.1.6"
55
__msxversion__ = "2.0.0"
66
__copyright__ = """Copyright 2022, KIOS Research and Innovation Center of Excellence (KIOS CoE),
77
University of Cyprus (www.kios.org.cy)."""

epyt/epanet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15925,7 +15925,7 @@ def MSXopen(self, msxfile):
1592515925
if not os.path.exists(msxfile):
1592615926
raise FileNotFoundError(f"File not found: {msxfile}")
1592715927

15928-
if display_msg:
15928+
if self.display_msg:
1592915929
print("Opening MSX file:", msxfile)
1593015930
msxbasename = os.path.basename(msxfile)
1593115931
err = self.msx_lib.MSXopen(c_char_p(msxfile.encode('utf-8')))
@@ -15934,7 +15934,7 @@ def MSXopen(self, msxfile):
1593415934
if err == 503:
1593515935
print("Error 503 may indicate a problem with the MSX file or the MSX library.")
1593615936
else:
15937-
if display_msg:
15937+
if self.display_msg:
1593815938
print(f"MSX file {msxbasename} loaded successfully.")
1593915939

1594015940
def MSXclose(self):

0 commit comments

Comments
 (0)