scipp.from_dict
scipp.from_dict#
- scipp.from_dict(dict_obj)#
Convert a python dict to a scipp Variable, DataArray or Dataset. If the input keys contain both ‘coords’ and ‘data’, then a DataArray is returned. If the input keys contain both ‘dims’ and ‘values’, as Variable is returned. Otherwise, a Dataset is returned.