dynamics-of-stellar-systems / dynamite

dynamics, age and metallicity indicators tracing evolution
MIT License
10 stars 1 forks source link

Use overall chi2 improvement (instead of improvement over previous chi2 only) when checking min_delta_chi2 criterion #392

Open maindlt opened 1 month ago

maindlt commented 1 month ago

391 reports a crash in ParameterGenerator.check_specific_stopping_critera() in a case where chi2 does not significantly improve over several hundred models (iterations?).

What may be happening based on the information provided:

In this PR, the method ParameterGenerator.check_specific_stopping_critera() now compares the last iteration's minimum $\chi^2$ to the overall minimum $\chi^2$ so far.

Dear @avichaturvedi, please try whether this PR solves your issue and let me know - many thanks!