Skip to content

Commit 8a94e20

Browse files
authored
Merge pull request #100 from lsst/tickets/DM-49263
DM-49263: Deprecate option to propagate PhotoCalib uncertainty.
2 parents ec40b5c + 13ca225 commit 8a94e20

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

python/lsst/drp/tasks/make_direct_warp.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ class MakeDirectWarpConfig(
318318
includeCalibVar = Field[bool](
319319
doc="Add photometric calibration variance to warp variance plane?",
320320
default=False,
321+
deprecated="Deprecated and disabled. Will be removed after v30.",
321322
)
322323
border = Field[int](
323324
doc="Pad the patch boundary of the warp by these many pixels, so as to allow for PSF-matching later",
@@ -711,11 +712,7 @@ def process(
711712
if self.config.doPreWarpInterpolation:
712713
self.preWarpInterpolation.run(input_exposure.maskedImage)
713714

714-
success = self._apply_all_calibrations(
715-
detector_inputs,
716-
visit_summary=visit_summary,
717-
includeScaleUncertainty=self.config.includeCalibVar,
718-
)
715+
success = self._apply_all_calibrations(detector_inputs, visit_summary=visit_summary)
719716

720717
if not success:
721718
return None
@@ -737,7 +734,6 @@ def _apply_all_calibrations(
737734
detector_inputs: WarpDetectorInputs,
738735
*,
739736
visit_summary: ExposureCatalog | None = None,
740-
includeScaleUncertainty: bool = False,
741737
) -> bool:
742738
"""Apply all of the calibrations from visit_summary to the exposure.
743739
@@ -760,10 +756,6 @@ def _apply_all_calibrations(
760756
Table of visit summary information. If not None, the visit summary
761757
information will be used to update the calibration of the input
762758
exposures. Otherwise, the input exposures will be used as-is.
763-
includeScaleUncertainty : bool
764-
Whether to include the uncertainty on the calibration in the
765-
resulting variance? Passed onto the `calibrateImage` method of the
766-
PhotoCalib object attached to ``exp``.
767759
768760
Returns
769761
-------
@@ -847,10 +839,7 @@ def _apply_all_calibrations(
847839
# Calibrate the (masked) image.
848840
# This should likely happen even if visit_summary is None.
849841
photo_calib = input_exposure.photoCalib
850-
input_exposure.maskedImage = photo_calib.calibrateImage(
851-
input_exposure.maskedImage,
852-
includeScaleUncertainty=includeScaleUncertainty,
853-
)
842+
input_exposure.maskedImage = photo_calib.calibrateImage(input_exposure.maskedImage)
854843
# This new PhotoCalib shouldn't need to be used, but setting it here
855844
# to reflect the fact that the image now has calibrated pixels might
856845
# help avoid future bugs.

0 commit comments

Comments
 (0)