twodlearn.utils.xarray module¶
-
twodlearn.utils.xarray.
dict_to_xarray
(records: dict, dims: List[str]) → xarray.core.dataarray.DataArray[source]¶ Transforms a dictionary tree to an xarray. :param records: nested dictionary with the record numbers. :type records: dict :param dims: names for the dimensions. :type dims: list
- Returns
xarray with the dictionary data.
- Return type
xr.DataArray