astroARIADNE icon indicating copy to clipboard operation
astroARIADNE copied to clipboard

re-computing bma.pkl without fitting

Open jpdeleon opened this issue 1 year ago • 1 comments

After running all the models, sometimes I want to exclude some models when re-plotting the posteriors using SEDPlotter. Is it possible to simply load the grid pickle files and re-compute BMA.pkl given the new list of models and fit only when the *_out.pkl file does not exist or explicitly specified with an argument, say refit=True?

if not Path(out_file).exists() or self.refit=True:
    self.fit_dynesty(out_file=out_file)

https://github.com/jvines/astroARIADNE/blob/39ef9013533d270aeaea8d157a7b29e317713f3d/astroARIADNE/fitter.py#L572

jpdeleon avatar Feb 15 '24 08:02 jpdeleon

Huh, this is an interesting use case I hadn't thought of. I'll work on it

jvines avatar Feb 20 '24 15:02 jvines