exception atomica.model.BadInitialization[source]

Error for invalid conditions

This error gets raised if the simulation exited due to a bad initialization, specifically due to negative initial popsizes or an excessive residual. This commonly happens if the initial conditions are being programatically varied and thus may be an expected error. This error can then be caught and dealt with appropriately. For example:

  • calibration will catch this error and instruct ASD to reject the proposed parameters

  • Ensemble.run_sims catches this error and tries another sample