You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💻 Feature request: replace assertions by custom exceptions
In most of the solvers, different assertions regarding the validity of the parameters, the convergence to a given accuracy and others are executed. Assertions should only be applied within the tests/ directory. Instead, we must create custom exceptions and raise those, for example: IterationsError, AtolError, RevolutionsError, RtolError, InputError, TransferAngleError.
📝 References
This talks by Mario Corchero titled "Exceptional Exceptions" will be super useful!
💻 Feature request: replace assertions by custom exceptions
In most of the solvers, different assertions regarding the validity of the parameters, the convergence to a given accuracy and others are executed. Assertions should only be applied within the
tests/
directory. Instead, we must create custom exceptions and raise those, for example:IterationsError
,AtolError
,RevolutionsError
,RtolError
,InputError
,TransferAngleError
.📝 References
This talks by Mario Corchero titled "Exceptional Exceptions" will be super useful!
The text was updated successfully, but these errors were encountered: