[Feature Req.] Ability to choose which 21cmFAST errors to abort with. #52
Labels
API Breaking
A change that breaks backwards compatibility
context: error-handling
Changes predominantly affect error-handling
context: mcmc
type: feature: code
New ability in the code (user-side)
Milestone
Is your feature request related to a problem? Please describe.
At the moment, if a
ParameterError
occurs during running 21cmFAST, it will be ignored and the chain will continue, setting that set of parameters to have likelihood of-inf
. As @BradGreig has pointed out, this can be dangerous because these parameters might affect the final chains.Describe the solution you'd like
We should make it option whether to exit on these errors. The default should be to exit.
Two extra features that go along with this that we might consider:
ParameterError
is let through. However, we could let the user specify subclasses ofParameterError
(see More informative errors 21cmFAST#219) that would trigger exits/ignoring.The text was updated successfully, but these errors were encountered: