est.io.io.load_data#
- est.io.io.load_data(data_url: ~silx.io.url.DataUrl, name: str, dimensions: ~typing.Sequence[int], columns_names: dict | None = None, energy_unit=<Unit('electron_volt')>, timeout=1.0) None | dict | ndarray | Spectra [source]#
Load a specific data from a url. Manage the different scheme (silx, fabio, numpy, PyMca, xraylarch)
- Parameters:
data_url – silx DataUrl with path to the data
name (str) – name of the data we want to load. Should be in (‘spectra’, ‘energy’, ‘configuration’)
columns_names (Union[None,dict]) –
name of the column to pick for .dat files… Expect key ‘mu’ and
’energy’ to be registered
- Type:
DataUrl
- Returns:
data loaded
- Return type:
Union[None,dict,numpy.ndarray]