Coverage for python/lsst/faro/preparation/MatchedPreparationTasks.py: 0%
24 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-22 03:26 -0700
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-22 03:26 -0700
1# This file is part of faro.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (https://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 program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <https://www.gnu.org/licenses/>.
22import lsst.pipe.base as pipeBase
24from lsst.faro.base.MatchedCatalogBase import (
25 MatchedBaseConnections,
26 MatchedBaseConfig,
27 MatchedBaseTask,
28 MatchedTractBaseTask,
29)
31__all__ = (
32 "PatchMatchedPreparationConnections",
33 "PatchMatchedPreparationConfig",
34 "PatchMatchedPreparationTask",
35 "TractMatchedPreparationConnections",
36 "TractMatchedPreparationConfig",
37 "TractMatchedPreparationTask",
38 "PatchMatchedMultiBandPreparationConnections",
39 "PatchMatchedMultiBandPreparationConfig",
40 "PatchMatchedMultiBandPreparationTask",
41)
44# The first thing to do is to define a Connections class. This will define all
45# the inputs and outputs that our task requires
46class PatchMatchedPreparationConnections(
47 MatchedBaseConnections,
48 dimensions=("tract", "patch", "band", "instrument", "skymap"),
49):
50 outputCatalog = pipeBase.connectionTypes.Output(
51 doc="Resulting matched catalog.",
52 dimensions=("tract", "patch", "instrument", "band"),
53 storageClass="SimpleCatalog",
54 name="matchedCatalogPatch",
55 )
58class PatchMatchedPreparationConfig(
59 MatchedBaseConfig, pipelineConnections=PatchMatchedPreparationConnections
60):
61 pass
64class PatchMatchedPreparationTask(MatchedBaseTask):
66 ConfigClass = PatchMatchedPreparationConfig
67 _DefaultName = "patchMatchedPreparationTask"
70class TractMatchedPreparationConnections(
71 MatchedBaseConnections, dimensions=("tract", "band", "instrument", "skymap")
72):
73 outputCatalog = pipeBase.connectionTypes.Output(
74 doc="Resulting matched catalog.",
75 dimensions=("tract", "instrument", "band"),
76 storageClass="SimpleCatalog",
77 name="matchedCatalogTract",
78 )
81class TractMatchedPreparationConfig(
82 MatchedBaseConfig, pipelineConnections=TractMatchedPreparationConnections
83):
84 pass
87class TractMatchedPreparationTask(MatchedTractBaseTask):
89 ConfigClass = TractMatchedPreparationConfig
90 _DefaultName = "tractMatchedPreparationTask"
93class PatchMatchedMultiBandPreparationConnections(
94 MatchedBaseConnections, dimensions=("tract", "patch", "instrument", "skymap")
95):
96 outputCatalog = pipeBase.connectionTypes.Output(
97 doc="Resulting matched catalog.",
98 dimensions=("tract", "patch", "instrument"),
99 storageClass="SimpleCatalog",
100 name="matchedCatalogPatchMultiBand",
101 )
104class PatchMatchedMultiBandPreparationConfig(
105 MatchedBaseConfig,
106 pipelineConnections=PatchMatchedMultiBandPreparationConnections,
107):
108 pass
111class PatchMatchedMultiBandPreparationTask(MatchedBaseTask):
113 ConfigClass = PatchMatchedMultiBandPreparationConfig
114 _DefaultName = "patchMatchedMultiBandPreparationTask"