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 (VariableLike) – 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