MetricConnections#
- class lsst.verify.tasks.MetricConnections(*, config: PipelineTaskConfig | None = None)#
Bases:
PipelineTaskConnectionsAn abstract connections class defining a metric output.
This class assumes detector-level metrics, which is the most common case. Subclasses can redeclare
measurementanddimensionsto override this assumption.Notes#
MetricConnectionsdefines the following dataset templates:packageName of the metric’s namespace. By verify_metrics convention, this is the name of the package the metric is most closely associated with.
metricName of the metric, excluding any namespace.
Attributes Summary
Mapping holding all connection attributes.
Set of dimension names that define the unit of work for this task.
Set with the names of all
InitInputconnection attributes.Set with the names of all
InitOutputconnection attributes.Set with the names of all
connectionTypes.Inputconnection attributes.Connection for output dataset.
Set with the names of all
Outputconnection attributes.Set with the names of all
PrerequisiteInputconnection attributes.Attributes Documentation
- allConnections: Mapping[str, BaseConnection] = {'measurement': Output(name='metricvalue_{package}_{metric}', storageClass='MetricValue', doc='The metric value computed by this task.', multiple=False, deprecated=None, _deprecation_context='', dimensions={'instrument', 'detector', 'visit'}, isCalibration=False)}#
Mapping holding all connection attributes.
This is a read-only view that is automatically updated when connection attributes are added, removed, or replaced in
__init__. It is also updated after__init__completes to reflect changes ininputs,prerequisiteInputs,outputs,initInputs, andinitOutputs.
- defaultTemplates = {'metric': None, 'package': None}#
- deprecatedTemplates = {}#
- dimensions: set[str] = {'detector', 'instrument', 'visit'}#
Set of dimension names that define the unit of work for this task.
Required and implied dependencies will automatically be expanded later and need not be provided.
This may be replaced or modified in
__init__to change the dimensions of the task. After__init__it will be afrozensetand may not be replaced.
- initInputs: set[str] = frozenset({})#
Set with the names of all
InitInputconnection attributes.See
inputsfor additional information.
- initOutputs: set[str] = frozenset({})#
Set with the names of all
InitOutputconnection attributes.See
inputsfor additional information.
- inputs: set[str] = frozenset({})#
Set with the names of all
connectionTypes.Inputconnection attributes.This is updated automatically as class attributes are added, removed, or replaced in
__init__. Removing entries from this set will cause those connections to be removed after__init__completes, but this is supported only for backwards compatibility; new code should instead just delete the collection attributed directly. After__init__this will be afrozensetand may not be replaced.
- measurement#
Connection for output dataset.