I'm repeating instructions over and over again. I think it would be super helpful to have a module of Errors, that can be composed and give the user the right information at the right time.
For instance I can have data variable, parameter or coordinate instructions and write them once and always return them when an assoicated error occurs
API idea
pymob.utils.errors module
PymobError: Is raised when a pymob specific problem occurs
instructions_parameter: is an instruction how to add a parameter to the model
instructions_...: any other instruction
Maybe errors can also be stacked or something fancy.
I'm repeating instructions over and over again. I think it would be super helpful to have a module of Errors, that can be composed and give the user the right information at the right time.
For instance I can have data variable, parameter or coordinate instructions and write them once and always return them when an assoicated error occurs
API idea
pymob.utils.errors
modulePymobError
: Is raised when a pymob specific problem occursinstructions_parameter
: is an instruction how to add a parameter to the modelinstructions_...
: any other instructionMaybe errors can also be stacked or something fancy.