afw.dataset.definitions.build_templates#

afw.dataset.definitions.build_templates(defs: list[dict[str, dict]]) dict[str, dict][source]#

Loads and builds custom dataset definitions from a given file. This will return a map of the form [das key template, {fileset: dict, metadata: dict}]

Parameters:

defs (list[dict]) – A list of objects containing datasets (templateable) and metadata

Returns:

A mapping from das key templates to a dict with a “metadata” key

Return type:

dict[str, dict]