From eed27a7ab5724f086b5bae0043f2a5ae64a5ffbf Mon Sep 17 00:00:00 2001 From: "Marios S. Kyriakou" Date: Sat, 20 Apr 2024 02:26:21 +0300 Subject: [PATCH] another fix in msxstep. --- epyt/__init__.py | 2 +- epyt/epanet.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/epyt/__init__.py b/epyt/__init__.py index 990172d..60ff64f 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.0" +__version__ = "1.1.1" __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 10c90c6..5e964fd 100644 --- a/epyt/epanet.py +++ b/epyt/epanet.py @@ -16202,8 +16202,12 @@ def MSXstep(self): t : current simulation time at the end of the step(in secconds) tleft: time left in the simulation (in secconds) """ - t = c_long() - tleft = c_long() + if platform.system().lower() in ["windows"]: + t = c_double() + tleft = c_double() + else: + t = c_double() + tleft = c_long() err = self.msx_lib.MSXstep(byref(t), byref(tleft)) if err: