Coverage for python / lsst / pipe / base / automatic_connection_constants.py: 100%
28 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-24 01:12 -0800
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-24 01:12 -0800
1# This file is part of pipe_base.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (http://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This software is dual licensed under the GNU General Public License and also
10# under a 3-clause BSD license. Recipients may choose which of these licenses
11# to use; please see the files gpl-3.0.txt and/or bsd_license.txt,
12# respectively. If you choose the GPL option then the following text applies
13# (but note that there is still no warranty even if you opt for BSD instead):
14#
15# This program is free software: you can redistribute it and/or modify
16# it under the terms of the GNU General Public License as published by
17# the Free Software Foundation, either version 3 of the License, or
18# (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program. If not, see <http://www.gnu.org/licenses/>.
28"""Constants used to define the connections automatically added for each
29PipelineTask by the execution system, as well as other special dataset types.
30"""
32from __future__ import annotations
34__all__ = (
35 "CONFIG_INIT_OUTPUT_CONNECTION_NAME",
36 "CONFIG_INIT_OUTPUT_STORAGE_CLASS",
37 "CONFIG_INIT_OUTPUT_TEMPLATE",
38 "LOG_OUTPUT_CONNECTION_NAME",
39 "LOG_OUTPUT_STORAGE_CLASS",
40 "LOG_OUTPUT_TEMPLATE",
41 "METADATA_OUTPUT_CONNECTION_NAME",
42 "METADATA_OUTPUT_STORAGE_CLASS",
43 "METADATA_OUTPUT_TEMPLATE",
44 "PACKAGES_INIT_OUTPUT_NAME",
45 "PACKAGES_INIT_OUTPUT_STORAGE_CLASS",
46 "PROVENANCE_DATASET_TYPE_NAME",
47 "PROVENANCE_STORAGE_CLASS",
48)
51CONFIG_INIT_OUTPUT_CONNECTION_NAME: str = "_config"
52"""Internal task-side name for the config dataset connection.
53"""
55CONFIG_INIT_OUTPUT_TEMPLATE: str = "{label}" + CONFIG_INIT_OUTPUT_CONNECTION_NAME
56"""String template used to form the name for config init-output dataset
57type names.
58"""
60CONFIG_INIT_OUTPUT_STORAGE_CLASS: str = "Config"
61"""Name of the storage class for config init-output datasets.
62"""
64PACKAGES_INIT_OUTPUT_NAME: str = "packages"
65"""Name of the global init-output dataset type that holds software versions.
66"""
68PACKAGES_INIT_OUTPUT_STORAGE_CLASS: str = "Packages"
69"""Name of the storage class for the dataset type that holds software versions.
70"""
72LOG_OUTPUT_CONNECTION_NAME: str = "_log"
73"""Internal task-side name for the log dataset connection.
74"""
76LOG_OUTPUT_TEMPLATE: str = "{label}" + LOG_OUTPUT_CONNECTION_NAME
77"""String template used to form the name for log output dataset type names.
78"""
80LOG_OUTPUT_STORAGE_CLASS: str = "ButlerLogRecords"
81"""Name of the storage class for log output datasets.
82"""
84METADATA_OUTPUT_CONNECTION_NAME: str = "_metadata"
85"""Internal task-side name for the metadata dataset connection.
86"""
88METADATA_OUTPUT_TEMPLATE: str = "{label}" + METADATA_OUTPUT_CONNECTION_NAME
89"""String template used to form the name for task metadata output dataset
90type names.
91"""
93METADATA_OUTPUT_STORAGE_CLASS: str = "TaskMetadata"
94"""Name of the storage class for task metadata output datasets.
95"""
97PROVENANCE_DATASET_TYPE_NAME: str = "run_provenance"
98"""Name of the dataset used to store per-RUN provenance."""
100PROVENANCE_STORAGE_CLASS: str = "ProvenanceQuantumGraph"
101"""Name of the storage class used to store provenance."""