Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology
https://pyautogalaxy.readthedocs.io/
MIT License
26 stars 13 forks source link

Simplify Figure of Merit Sanity check and Disable by Default #158

Closed Jammy2211 closed 4 months ago

Jammy2211 commented 4 months ago

An in-built sanity check can be performed, which when a non-linear search restarts compares the output value of the likelihood function to a value saved during the previous run.

If the values are inconsistent, an exception is raised.

This catches fits where the likelihood function has changed or is numerically unstable.

This PR simplifies the code by having just one config entry to turn the feature on and off. It also disables it by default, as it slows down the code and should not be relevent for most end users who do not interact with the source code.