py21cmmc.cosmoHammer.HDFStorage.get_last_sample#

HDFStorage.get_last_sample()[source]#

Access the most recent sample in the chain.

Returns:

  • coords (ndarray) – A list of the current positions of the walkers in the parameter space. The shape of this object will be (nwalkers, dim).

  • log_prob (list) – The list of log posterior probabilities for the walkers at positions given by coords . The shape of this object is (nwalkers,).

  • rstate – The current state of the random number generator.

  • blobs (dict, optional) – The metadata “blobs” associated with the current position. The value is only returned if blobs have been saved during sampling.