ashokkrish / spatialEpisim

spatialEpisim: Spatial Tracking of Infectious Disease Epidemics using Mathematical Models
GNU General Public License v3.0
9 stars 4 forks source link

Display simulation progress rather than indefinite waiter #13

Closed bryce-carson closed 3 months ago

bryce-carson commented 5 months ago

The waiter currently used is an "indefinite" one, while the progress of the simulation is known because it prints the current time of the simulation every "tick."

ashokkrish commented 4 months ago

The waiter currently used is an "indefinite" one, while the progress of the simulation is known because it prints the current time of the simulation every "tick."

This would be a valuable enhancement especially when simulations are running and the user gets an idea as to how much longer it might take to finish running.

bryce-carson commented 3 months ago

For this I am providing the SVEIRD function with a parameter which allows the Shiny application to provide an optional callback function, which is what will be used by the "waitress" from the waiter package.