asselapathirana / epanettools

EPANET calling API for python.
Other
16 stars 13 forks source link

File closure bug. #31

Open asselapathirana opened 5 years ago

asselapathirana commented 5 years ago

In version 1.0.0 I noticed the following: If you run a number of simulations in a loop. after about 100 runs, the library returns errors. This is a minimal example. When range(1000,50,-10) is modifed to say range(1000,50,-1) so that the loop runs more than 100 times, it stop at 100.

Error: self.pd.ENsavehydfile(self.hydraulicfile) fails and return code 305.

antonismano commented 5 years ago

The bug is there in previous versions as well. It is the same issue with #28 (Problem with saving files). Is it possible that it is a Windows 10 issue?