scipp.to_dict

scipp.to_dict(scipp_obj)

Convert a scipp object (Variable, DataArray or Dataset) to a python dict.

Parameters

scipp_obj (VariableLike) – A Variable, DataArray or Dataset to be converted to a python dict.

Returns

A dict containing all the information necessary to fully define the supplied scipp object.

Return type

dict