scipp.to_dict#

scipp.to_dict(scipp_obj)#

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

Parameters

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

Returns

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