Skip to content

Commit

Permalink
Added docstring to _EmptyTargetTask
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmullaney committed Mar 20, 2024
1 parent 846ea3f commit 6a7085f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/lsst/pipe/tasks/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,19 @@


class _EmptyTargetTask(pipeBase.PipelineTask):
"""
This is a placeholder target for CreateSummaryMetrics and must be retargeted at runtime.
CreateSummaryMetrics should target an analysis tool task, but that would, at the time
of writing, result in a circular import.
As a result, this class should not be used for anything else.
"""
ConfigClass = pipeBase.PipelineTaskConfig

def __init__(self, **kwargs) -> None:
raise NotImplementedError(
"doCreateSummaryMetrics is set to True, in which case"
"CreateSummaryMetrics must be retargeted."
"doCreateSummaryMetrics is set to True, in which case "
"createSummaryMetrics must be retargeted."
)


Expand Down

0 comments on commit 6a7085f

Please sign in to comment.