@@ -318,6 +318,7 @@ class MakeDirectWarpConfig(
318
318
includeCalibVar = Field [bool ](
319
319
doc = "Add photometric calibration variance to warp variance plane?" ,
320
320
default = False ,
321
+ deprecated = "Deprecated and disabled. Will be removed after v30." ,
321
322
)
322
323
border = Field [int ](
323
324
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(
711
712
if self .config .doPreWarpInterpolation :
712
713
self .preWarpInterpolation .run (input_exposure .maskedImage )
713
714
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 )
719
716
720
717
if not success :
721
718
return None
@@ -737,7 +734,6 @@ def _apply_all_calibrations(
737
734
detector_inputs : WarpDetectorInputs ,
738
735
* ,
739
736
visit_summary : ExposureCatalog | None = None ,
740
- includeScaleUncertainty : bool = False ,
741
737
) -> bool :
742
738
"""Apply all of the calibrations from visit_summary to the exposure.
743
739
@@ -760,10 +756,6 @@ def _apply_all_calibrations(
760
756
Table of visit summary information. If not None, the visit summary
761
757
information will be used to update the calibration of the input
762
758
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``.
767
759
768
760
Returns
769
761
-------
@@ -847,10 +839,7 @@ def _apply_all_calibrations(
847
839
# Calibrate the (masked) image.
848
840
# This should likely happen even if visit_summary is None.
849
841
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 )
854
843
# This new PhotoCalib shouldn't need to be used, but setting it here
855
844
# to reflect the fact that the image now has calibrated pixels might
856
845
# help avoid future bugs.
0 commit comments