People-Places-Solutions/floodmodeller-api

IEF.simulate() needs some reconsideration/reworking

Open

#250 opened on May 5, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (23 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (42 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, once the simulation process has finished the code will attempt to read the .exy to evaluate the state of the run. However, this seems to return a FileNotFoundError when I tested it, as the code could not find the .exy

For the use case that I was using this for, I only wanted python to perform the run, regardless of outcome, and then continue.

I think it's worth 'reinforcing' the code here so it's less likey to fail around not finding the .exy, this might have to be investigated; and possibly to be discussed something like this: on_completion: None | Callable = _summarise_exy as an argument. Note that IEF.simulate() doesn't seem to return anything at the moment anyways (given method="WAIT"); and/or just returning the exit code of the process itself (?)

Contributor guide