Skip to content

Commit 7102957

Browse files
authored
Fix bug in fluxcalib point_source_correction
The calibration vector (ccalibration) is normalized by the fiber aperture correction factor (point_source_correction), but its inverse variance was normalized. This PR fixes that.
1 parent e033a8c commit 7102957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/desispec/fluxcalibration.py

+1
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ def add_margin_3d_dim2(iarray,margin) :
13491349

13501350
#- Apply point source flux correction
13511351
ccalibration /= point_source_correction[:,None]
1352+
ccalibivar *= (point_source_correction[:,None])**2
13521353

13531354
log.info(f"{camera} interpolate calibration over Ca and Na ISM lines")
13541355
# do this after convolution with resolution

0 commit comments

Comments
 (0)