pymc.backends.zarr.ZarrChain.flush#

ZarrChain.flush()[source]#

Write the data stored in the internal buffer to the desired zarr store.

After writing the draws and stats returned by each step of the step method, the number of draws taken so far is stored in _sampling_state/draw_idx, the internal buffer is cleared and the number of steps until the next flush is determined.