WaterFutures / EPyT-Flow

A high-level interface designed for the easy generation of hydraulic and water quality scenario data.
https://epyt-flow.readthedocs.io/en/stable
MIT License
18 stars 4 forks source link

Sometimes I have the error below - self.__find_temporary_file() #6

Closed Mariosmsk closed 6 months ago

Mariosmsk commented 8 months ago

Maybe can't find the EPANET file in the temp folder?

image

andreArtelt commented 8 months ago

Mh, EPANET usually always creates a temporary file that we have to remove manually afterward. Can you provide more details how to reproduce this issue?

Mariosmsk commented 8 months ago

I run the example abrupt_leakage.py. I think by calling epanet_api.unload() it tries to remove the temporary file.

andreArtelt commented 8 months ago

Mh, I can not reproduce this :/

Also, epanet_api.unload() never removes this temporary file -- this is why I had to implement this on my own :/

andreArtelt commented 7 months ago

Any changes in EPyT concerning this issue? On my machine, EPyT still does not remove those temporary files -- so I put my old code back. Does it still crash on your machine?

andreArtelt commented 6 months ago

Latest version of EPyT removed those temporary files automatically. This should solve this issue -- if not, please re-open.