epispot / EpiJS

A toolset for analyzing and creating epidemiological models.
https://epi.js.org
GNU General Public License v3.0
5 stars 2 forks source link

Feature - Allow key values to be a function of time #143

Closed Quantalabs closed 2 years ago

Quantalabs commented 2 years ago

Is your feature request related to a problem? Please describe. Users cannot pass in dynamic key values, that change overtime, which is useful when simulating a real world environment (ie. Users can change key values to model different restrictions that are lifted and added).

Describe the solution you'd like Key values can still be passed through an object, but can be a function of time, with a single parameter, which is the iteration the model is on.

Describe alternatives you've considered Other possibilities include users running the .get_data method for 1 day, changing the key value, running it again, and so on, which is inefficient and time consuming.

Additional context This should be done with the v3a2 release.

Quantalabs commented 2 years ago

/claim

github-actions[bot] commented 2 years ago

Thank you @Quantalabs for claiming this issue! 🎉

Please reference this issue when you submit your Pull Request and make sure you follow the contributing guidelines.