Skip to content

Commit

Permalink
fix: found bug with v2.2 threading
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart committed Dec 16, 2024
1 parent 0978643 commit effb245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion wntr/epanet/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ def __init__(self, inpfile="", rptfile="", binfile="", version=2.2):
except:
raise
finally:
self._project = None
if version >= 2.2:
self._project = ctypes.c_uint64()
else:
self._project = None
return

def isOpen(self):
Expand Down
1 change: 0 additions & 1 deletion wntr/tests/test_sim_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def test_Net3_performance_PDA(self):
)

@pytest.mark.time_consuming
@pytest.mark.skip
def test_Net6_thread_performance(self):
"""
Test thread-safe performance of simulators
Expand Down

0 comments on commit effb245

Please sign in to comment.