DatasetOriginInfoDef

class lsst.daf.butler.DatasetOriginInfoDef(defaultInputs, defaultOutput, inputOverrides=None, outputOverrides=None)

Bases: lsst.daf.butler.DatasetOriginInfo

Default implementation of the DatasetOriginInfo.

Parameters:
defaultInputs : list of str

Default list of input collections, used for dataset types for which there are no overrides.

defaultOutput : str

Default output collection, used for dataset types for which there is no override.

inputOverrides : dict {str: list of str}, optional

Per-DatasetType overrides for input collections. The key is the name of the DatasetType, the value is a list of input collection names.

outputOverrides : dict {str: str}, optional

Per-DatasetType overrides for output collections. The key is the name of the DatasetType, the value is output collection name.

Methods Summary

getInputCollections(datasetTypeName) Return ordered list of input collections for given dataset type.
getOutputCollection(datasetTypeName) Return output collection name for given dataset type.

Methods Documentation

getInputCollections(datasetTypeName)

Return ordered list of input collections for given dataset type.

Returns:
collections : list of str

Names of input collections.

getOutputCollection(datasetTypeName)

Return output collection name for given dataset type.

Returns:
collection : str

Name of output collection.