springer-math / Mathematics-of-Epidemics-on-Networks

Source code accompanying 'Mathematics of Epidemics on Networks' by Kiss, Miller, and Simon http://www.springer.com/us/book/9783319508047 . Documentation for the software package is at https://epidemicsonnetworks.readthedocs.io/en/latest/
MIT License
150 stars 61 forks source link

Progress Callback Feature #53

Open SushantGautam opened 4 years ago

SushantGautam commented 4 years ago

Can you add options for callback function? Since simulations are slower there seems no way to find the progress.

Thanks

joelmiller commented 4 years ago

Can you give an example of what you would want to do?

SushantGautam commented 4 years ago

for example When I call any function like SIR_individual_based_pure_IC we could pass an argument for progress printing. eg. SIR_individual_based_pure_IC (. . .. .. , verbose=True) We would print the progress of integration with that enabled. I could see the dependency on scipy.integrate.odeint Maybe this could be of help: https://stackoverflow.com/questions/59047892/how-to-monitor-the-process-of-scipy-odeint