Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-35835: Remove CmdLineTask inheritance #145

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/cpCombine.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ class CalibCombineConfig(pipeBase.PipelineTaskConfig,
)


class CalibCombineTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CalibCombineTask(pipeBase.PipelineTask):
"""Task to combine calib exposures."""

ConfigClass = CalibCombineConfig
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/cpDarkTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class CpDarkTaskConfig(pipeBase.PipelineTaskConfig,
)


class CpDarkTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CpDarkTask(pipeBase.PipelineTask):
"""Combine pre-processed dark frames into a proposed master calibration.
"""

Expand Down
6 changes: 2 additions & 4 deletions python/lsst/cp/pipe/cpFlatNormTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ class CpFlatMeasureTaskConfig(pipeBase.PipelineTaskConfig,
)


class CpFlatMeasureTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CpFlatMeasureTask(pipeBase.PipelineTask):
"""Apply extra masking and measure image statistics.
"""

Expand Down Expand Up @@ -184,8 +183,7 @@ class CpFlatNormalizationTaskConfig(pipeBase.PipelineTaskConfig,
)


class CpFlatNormalizationTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CpFlatNormalizationTask(pipeBase.PipelineTask):
"""Rescale merged flat frames to remove unequal screen illumination.
"""

Expand Down
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/cpFringeTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ def setDefaults(self):
self.detection.reEstimateBackground = False


class CpFringeTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CpFringeTask(pipeBase.PipelineTask):
"""Combine pre-processed fringe frames into a proposed master calibration.
"""

Expand Down
8 changes: 4 additions & 4 deletions python/lsst/cp/pipe/cpSkyTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def setDefaults(self):
'EDGE', 'NO_DATA']


class CpSkyImageTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class CpSkyImageTask(pipeBase.PipelineTask):
"""Mask the detections on the postISRCCD.

This task maps the MaskObjectsTask across all of the initial ISR
Expand Down Expand Up @@ -190,7 +190,7 @@ class CpSkyScaleMeasureConfig(pipeBase.PipelineTaskConfig,
pass


class CpSkyScaleMeasureTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class CpSkyScaleMeasureTask(pipeBase.PipelineTask):
"""Measure per-exposure scale factors and merge focal plane backgrounds.

Merge all the per-detector partial backgrounds to a full focal
Expand Down Expand Up @@ -282,7 +282,7 @@ class CpSkySubtractBackgroundConfig(pipeBase.PipelineTaskConfig,
)


class CpSkySubtractBackgroundTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class CpSkySubtractBackgroundTask(pipeBase.PipelineTask):
"""Subtract per-exposure background from individual detector masked images.

The cpSkyMaskedIsr images constructed by CpSkyImageTask have the
Expand Down Expand Up @@ -375,7 +375,7 @@ class CpSkyCombineConfig(pipeBase.PipelineTaskConfig,
)


class CpSkyCombineTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class CpSkyCombineTask(pipeBase.PipelineTask):
"""Merge per-exposure measurements into a detector level calibration.

Each of the per-detector results from all input exposures are
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/deferredCharge.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ class CpCtiSolveConfig(pipeBase.PipelineTaskConfig,
)


class CpCtiSolveTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class CpCtiSolveTask(pipeBase.PipelineTask):
"""Combine CTI measurements to a final calibration.

This task uses the extended pixel edge response (EPER) method as
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/cp/pipe/makeBrighterFatterKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class BrighterFatterKernelSolveConfig(pipeBase.PipelineTaskConfig,
)


class BrighterFatterKernelSolveTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class BrighterFatterKernelSolveTask(pipeBase.PipelineTask):
"""Measure appropriate Brighter-Fatter Kernel from the PTC dataset.
"""

Expand Down
2 changes: 1 addition & 1 deletion python/lsst/cp/pipe/pdCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PhotodiodeCorrectionConfig(pipeBase.PipelineTaskConfig,
"""


class PhotodiodeCorrectionTask(pipeBase.PipelineTask, pipeBase.CmdLineTask):
class PhotodiodeCorrectionTask(pipeBase.PipelineTask):
"""Calculate the photodiode corrections.
"""

Expand Down
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/ptc/cpExtractPtcTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ class PhotonTransferCurveExtractConfig(pipeBase.PipelineTaskConfig,
)


class PhotonTransferCurveExtractTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class PhotonTransferCurveExtractTask(pipeBase.PipelineTask):
"""Task to measure covariances from flat fields.

This task receives as input a list of flat-field images
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/cp/pipe/ptc/cpSolvePtcTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ class PhotonTransferCurveSolveConfig(pipeBase.PipelineTaskConfig,
)


class PhotonTransferCurveSolveTask(pipeBase.PipelineTask,
pipeBase.CmdLineTask):
class PhotonTransferCurveSolveTask(pipeBase.PipelineTask):
"""Task to fit the PTC from flat covariances.

The first task of the PTC measurement pipeline,
Expand Down