thouska / spotpy

A Statistical Parameter Optimization Tool
https://spotpy.readthedocs.io/en/latest/
MIT License
254 stars 152 forks source link

Adding a mechanism for progress update notification in long-lived executions #169

Open jmp75 opened 6 years ago

jmp75 commented 6 years ago

I am working on a system where celery is used to queue and execute calibration tasks with spotpy. I would like to report to the user useful information as to the progress of the tasks. Currently the algorithms (SCE-UA) is printing statements to stdout. While reporting this as is, this is probably not suitable to reliably report progress (e.g. % of max runtime). I'll draft a design for an observer to plug in an object into SCE that can be updated with progress information, but if other users have suggestions as to designs, I'd like to hear. I'd prefer to reuse something already proven, though it may prove more complicated than a simpler, custom logging system.