nuclear-multimessenger-astronomy / nmma

A pythonic library for probing nuclear physics and cosmology with multimessenger analysis
https://nuclear-multimessenger-astronomy.github.io/nmma/
GNU General Public License v3.0
33 stars 58 forks source link

Modify --skip-sampling behavior to successfully generate plots #270

Closed bfhealy closed 12 months ago

bfhealy commented 12 months ago

This PR modifies the behavior of analysis.py when the --skip-sampling flag is set. The flag now initiates a single iteration of sampling that resumes from saved checkpoint files, allowing results/plots to be generated. This fixes an issue where plots failed to generate because the posterior_results.dat file was not saved until the conclusion of a sampling run.