ApdbMetricTask¶
ApdbMetricTask
is a base class for generating Measurement
s from an Alert Production Database.
The class handles loading an appropriately configured database, while subclasses are responsible for creating the Measurement
using the database API.
Processing summary¶
ApdbMetricTask
runs this sequence of operations:
Generate an
Apdb
object from the config inapdb_config_url
.Process the database by passing it to the customizable
makeMeasurement
method, and return theMeasurement
.
Python API summary¶
from lsst.verify.tasks.apdbMetricTask import ApdbMetricTask
-
class
ApdbMetricTask
(**kwargs) A base class for tasks that compute metrics from an alert production database
...
- attributeconfig
Access configuration fields and retargetable subtasks.
See also
See the ApdbMetricTask
API reference for complete details.
Butler datasets¶
Input datasets¶
dbInfo
A Butler dataset whose presence guarantees the APDB has been updated. The dataset itself is never used.
Output datasets¶
measurement
The value of the metric. The dataset type should not be configured directly, but should be set changing the
package
andmetric
template variables to the metric’s namespace (package, by convention) and in-package name, respectively. Subclasses that only support one metric should set these variables automatically.
Retargetable subtasks¶
No subtasks.
Configuration fields¶
apdb_config_url¶
A config file specifying the APDB and its connection parameters, typically written by the apdb-cli command-line utility.
connections¶
- Data type
lsst.pipe.base.config.ApdbMetricConfigConnections
- Field type
Configurations describing the connections of the PipelineTask to datatypes
saveLogOutput¶
Flag to enable/disable saving of log output for a task, enabled by default.