InitOutputDatasetField

lsst.pipe.base.InitOutputDatasetField(*, doc, storageClass, check=None, name='', nameTemplate='')

Factory function to create Config class instances of InitOutputDatasetConfig

This function servers as syntactic sugar for creating ConfigField which are InitOutputDatasetConfig. The naming of this function violates the normal convention of a lowercase first letter in the function name, as this function is intended to sit in the same place as ConfigField classes, and consistency in declaration syntax is important.

The input arguments for this class are a combination of the arguments for ConfigField and InitOutputDatasetConfig. The arguments doc and check come from ConfigField, while name and storageClass come from InitOutputDatasetConfig.

Parameters:
doc : str

Documentation string for the InitOutputDatasetConfig

name : str

Name of the DatasetType in the returned InitOutputDatasetConfig

storageClass : str

Name of the StorageClass in the InitOutputDatasetConfig

check : callable

A callable to be called with the field value that returns False if the value is invalid.

Returns:
result : ConfigField

Instance of a ConfigField with InputDatasetConfig as a dtype