afw.dataset.definitions.build_datasets# afw.dataset.definitions.build_datasets(base: str | dict, max_files: int = None) → dict[str, dict][source]# Builds a complete dataset from a given file. Parameters: base (str | dict) – If a string, the path to any yaml file template for a dataset. Otherwise, a dict value. max_files (int, default None) – If present, the amount of files to restrict to per section Returns: A mapping from das keys to a dictionary containing files and metadata keys. Return type: dict[str, dict]