Skip to content

Commit

Permalink
Fix incorrect value in PIXLIM2 in flux calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Mar 9, 2018
1 parent d4507b9 commit 0cc8173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megaradrp/processing/fluxcalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run(self, img):
img['primary'].data /= exptime
newdata = numpy.zeros_like(img['primary'].data)
limr1 = self.pixlims['PIXLIMR1']
limr2 = self.pixlims['PIXLIMR1']
limr2 = self.pixlims['PIXLIMR2']
validr = slice(limr1, limr2 + 1, 1)
# with numpy.errstate(invalid='ignore', divide='ignore'):
newdata[:, validr] = img['primary'].data[:, validr] / self.sensp.data[validr]
Expand Down

0 comments on commit 0cc8173

Please sign in to comment.