[docs]defget_dataset(options:DictConfig)->Tuple[Dataset,Dict[str,TargetInfo]]:""" Gets a dataset given a configuration dictionary. The system and targets in the dataset are read from one or more files, as specified in ``options``. :param options: the configuration options for the dataset. This configuration dictionary must contain keys for both the systems and targets in the dataset. :returns: A tuple containing a ``Dataset`` object and a ``Dict[str, TargetInfo]`` containing additional information (units, physical quantities, ...) on the targets in the dataset """ifoptions["systems"]["read_from"].endswith(".zip"):# disk datasetdataset=DiskDataset(options["systems"]["read_from"])target_info_dictionary=dataset.get_target_info(options["targets"])else:systems=read_systems(filename=options["systems"]["read_from"],reader=options["systems"]["reader"],)targets,target_info_dictionary=read_targets(conf=options["targets"])dataset=Dataset.from_dict({"system":systems,**targets})returndataset,target_info_dictionary