Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameter validation #7

Open
smorken opened this issue Aug 8, 2019 · 0 comments
Open

parameter validation #7

smorken opened this issue Aug 8, 2019 · 0 comments

Comments

@smorken
Copy link
Member

smorken commented Aug 8, 2019

Add validation functions for the parameters passed into the CBM model functions. This is useful to catch errors early in simulations, rather than detecting errors later or at the end of long running simulations, which can be a huge time waster. It also is an opportunity to create useful error message feedback, rather than relegating this to lower level code which might not be as user friendly in this regard.

Things that can likely be pre-validated:

  • parameter/variable shapes (for all parameters that are stored in numpy)
  • parameter/variable value ranges
  • invalid ids
  • more complex relationships: for example check for missing yield curves,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant