pardata.dataset.Dataset.load

Dataset.load(subdatasets=None, format_loader_map=None, check=True)

Load data files to RAM. It adds a directory read lock during execution.

Parameters
  • subdatasets (Optional[Iterable[str]]) – The subdatasets to load. None means all subdatasets.

  • format_loader_map (Optional[pardata.loaders._format_loader_map.FormatLoaderMap]) – The loaders.FormatLoaderMap object that determines which loader to use.

  • check (bool) – Check to make sure the data files are currently present in _data_dir (passed in via data_dir in the constructor Dataset) before loading them by running is_downloaded(). If set to True, raise an error if they are missing and prevent attempting to load them. Set to False to remove this safeguard.

Raises
Returns

Loaded data objects. Same as data.

Return type

Dict[str, Any]