pymc.backends.zarr.ZarrTrace.to_inferencedata#
- ZarrTrace.to_inferencedata(save_warmup=False, eager=False)[source]#
Convert
ZarrTracetoDataTree.This converts all the groups in the
ZarrTrace.roothierarchy into anDataTreeobject. The only exception is that_sampling_stateis excluded.- Parameters:
Notes
xarrayand in turnarvizrequire the zarr groups to have consolidated metadata. To achieve this, a new consolidated store is constructed by callingzarr.consolidate_metadata()on the root’s store. This means that the returnedDataTreeobject will operate on a different storage unit than the callingZarrTrace, so future changes to theZarrTracewon’t be automatically reflected in the returnedDataTreeobject.