CosmoFit.open_chain

CosmoFit.open_chain(path, name='mcmc')[source]

Read a saved chain back for analysis, without a Fitter and without touching any dataset.

Use this for the cheap questions – what did the posterior look like, has it converged, how long did it run. Anything needing the likelihood again (best_fit(), per-dataset chi2, model comparison, most plots) needs the fitter too: see from_chain().

>>> chain = open_chain("chains/cpl.h5")
>>> chain.summary()
Parameters:
Return type:

StoredSampler