Skip to content

Commit

Permalink
Use leading underscore for TrivialBackgroundList
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Nov 8, 2024
1 parent 2d3926e commit 3a22246
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/lsst/pipe/tasks/make_direct_warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
)


class TrivialBackgroundList:
class _TrivialBackgroundList:
"""Trivial class that quacks like BackgroundList and gives 0 as image."""

@classmethod
Expand All @@ -93,10 +93,10 @@ class WarpDetectorInputs:
data_id: DataCoordinate
"""Butler data ID for this detector."""

background_revert: BackgroundList | TrivialBackgroundList | None = None
background_revert: BackgroundList | _TrivialBackgroundList | None = None
"""Background model to restore in (i.e. add to) the image."""

background_apply: BackgroundList | TrivialBackgroundList | None = None
background_apply: BackgroundList | _TrivialBackgroundList | None = None
"""Background model to apply to (i.e. subtract from) the image."""

_exposure: ExposureF | None = None
Expand Down Expand Up @@ -608,8 +608,8 @@ def run(self, inputs: Mapping[int, WarpDetectorInputs], sky_info, visit_summary)
noise_pseudo_inputs = dataclasses.replace(
detector_inputs,
exposure_or_handle=noise_calexp,
background_revert=TrivialBackgroundList(),
background_apply=TrivialBackgroundList(),
background_revert=_TrivialBackgroundList(),
background_apply=_TrivialBackgroundList(),
)
warpedNoise = self.process(
noise_pseudo_inputs,
Expand Down

0 comments on commit 3a22246

Please sign in to comment.