CDCgov / PyRenew

Python package for multi-signal Bayesian renewal modeling with JAX and NumPyro.
https://cdcgov.github.io/PyRenew/
Apache License 2.0
14 stars 3 forks source link

DRYify input validation #452

Open dylanhmorris opened 1 month ago

dylanhmorris commented 1 month ago

Would be good to have generic functions for common input validation tasks. Even better to depend on a well-liked/tested library for this.

Example: checking for an integer > x, which happens in a non-generic way here: https://github.com/CDCgov/PyRenew/blob/afbb340ce35176c5fb4c23afc05bfa1ee777841e/pyrenew/process/differencedprocess.py#L234-L245

damonbayer commented 1 month ago

Example: checking for an integer > x

This already part of https://github.com/CDCgov/PyRenew/issues/403