afw.dataset.definitions.convert_section#

afw.dataset.definitions.convert_section(section: list, is_data: bool)[source]#

Loads a monte-carlo or data definition section

Parameters:
  • section (list) – A list of objects, each of which has a shortName and datasets key. Additional keys will persist as metadata.

  • is_data (bool) – The value to apply to the isData metadata key

Returns:

A map from DAS key pattern to the associated metadata object

Return type:

dict[str, dict]