Skip to content

Commit

Permalink
change strategy for kernel amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed Jun 19, 2024
1 parent dfd4b76 commit a4f10d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lsst/meas/algorithms/gp_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,11 @@ def interpolate_sub_masked_image(self, sub_masked_image):
if good_pixel.size == 0:
warnings.warn('No bad or good pixels found. No interpolation performed.')
return sub_masked_image
kernel_amplitude = np.std(good_pixel[:, 2:])
# kernel amplitude might be better described by maximum value of good pixel given
# the data and not really a random gaussian field.
kernel_amplitude = np.max(good_pixel[:, 2:])
else:
kernel_amplitude = np.max(good_pixel[:, 2:])
try:
good_pixel = self._good_pixel_binning(copy.deepcopy(good_pixel))
except:
Expand Down

0 comments on commit a4f10d8

Please sign in to comment.