OutputDatasetField¶
-
lsst.pipe.base.
OutputDatasetField
(doc, name, units, storageClass, scalar=False, check=None)¶ Factory function to create
Config
class instances ofOutputDatasetConfig
This function servers as syntactic sugar for creating Configurable fields which are
OutputDatasetConfig
. 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 asConfigField
classes, and consistency in declaration syntax is important.The input arguments for this class are a combination of the arguments for
ConfigField
andOutputDatasetConfig
. The arguments doc and check come fromConfigField
, while name, units, scalar, and storageClass come fromOutputDatasetConfig
.Parameters: - doc :
str
Documentation string for the
OutputDatasetConfig
- name :
str
Name of the
DatasetType
in the returnedOutputDatasetConfig
- units : iterable of
str
Iterable of DataUnits for this
DatasetType
- scalar :
bool
, optional If set to True then only a single dataset is expected on input or produced on output. In that case list of objects/DataIds will be unpacked before calling task methods, returned data is expected to contain single objects as well.
- storageClass :
str
Name of the
StorageClass
in theOutputDatasetConfig
- 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
withInputDatasetConfig
as a dtype
- doc :