Skip to content

Commit

Permalink
minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed May 11, 2024
1 parent fa1bbfa commit 4e152fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion epyt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
__author__ = """Marios S. Kyriakou"""
__email__ = "[email protected]"
__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)."""
Expand Down
4 changes: 2 additions & 2 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')))
Expand All @@ -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):
Expand Down

0 comments on commit 4e152fc

Please sign in to comment.