afw.dataset.definitions#

Utilities for loading definitions from dataset yaml files

Functions

build_datasets(base[, max_files])

Builds a complete dataset from a given file.

build_templates(defs)

Loads and builds custom dataset definitions from a given file.

expand_templates(templates)

Expands a dict of [das key template, dict] to [das key, dict], copying the second parameter for each das key given

populate_files(das_key[, section, max_files])

Populates the files key for a given das key, and computes nevents and nevents_total.

remove_obsolete_versions(dataset)

Removes obsolete versions with no files from a given dataset.