danielapai / bioverse

A simulation framework to assess the statistical power of future biosignature surveys
MIT License
7 stars 6 forks source link

[fix] Fail-safety in analysis.test_hypothesis_grid(), and other minor improvements #54

Open astral-carrier opened 6 months ago

astral-carrier commented 6 months ago

Errors arising inside analysis.test_hypothesis_grid_iter() cause that iteration to be skipped instead of halting the test. Fitting errors inside analysis.test_hypothesis_grid_iter() cause the iteration to be re-run with a new sample.

Also makes analysis.test_hypothesis_grid_iter() random by default (unknown what the seed was previously but it seemed to be constant every run). It also prints the seed out as debugging info.

Also adds an option for debugging output during analysis.test_hypothesis_grid_iter() to be redirected to a text file instead of stdout/stderr.

The progress bar shown during analysis.test_hypothesis_grid() is made more accurate and less prone to underestimating progress.

Intended to fix #46 and maybe also #49