load_datasets

glotaran.utils.io.load_datasets(dataset_mappable: str | Path | Dataset | DataArray | Sequence[str | Path | Dataset | DataArray] | Mapping[str, str | Path | Dataset | DataArray]) DatasetMapping[source]

Load multiple datasets into a mapping (convenience function).

This is used for file_loadable_field of a dataset mapping e.g. in Scheme

Parameters:

dataset_mappable (DatasetMappable) – Single dataset/file path to a dataset or sequence or mapping of it.

Returns:

Mapping of dataset with string keys, where datasets hare ensured to have the source_path attr.

Return type:

DatasetMapping