scipp.compat.dict.to_dict#

scipp.compat.dict.to_dict(scipp_obj)#

Convert a Scipp object (Variable, DataArray or Dataset) to a Python dict.

Parameters:

scipp_obj (Union[Variable, DataArray, Dataset, DataGroup]) – Scipp object to be converted to a python dict.

Returns:

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

See also

scipp.from_dict