@@ -207,7 +207,7 @@ def run(self,
207
207
diaSrcHistory ,
208
208
diaForcedSources ,
209
209
diffIm ,
210
- calexp ,
210
+ science ,
211
211
template ,
212
212
doRunForcedMeasurement = True ,
213
213
):
@@ -237,7 +237,7 @@ def run(self,
237
237
``["diaObjectId"]``
238
238
diffIm : `lsst.afw.image.ExposureF`
239
239
Difference image the sources in ``diaSourceCat`` were detected in.
240
- calexp : `lsst.afw.image.ExposureF`
240
+ science : `lsst.afw.image.ExposureF`
241
241
Calexp used to create the ``diffIm``.
242
242
template : `lsst.afw.image.ExposureF` or `None`
243
243
Template image used to create the ``diffIm``.
@@ -253,10 +253,10 @@ def run(self,
253
253
detector = diffIm .detector .getId ()
254
254
visit = diffIm .visitInfo .id
255
255
diffImPhotoCalib = diffIm .getPhotoCalib ()
256
- calexpPhotoCalib = calexp .getPhotoCalib ()
256
+ sciencePhotoCalib = science .getPhotoCalib ()
257
257
templatePhotoCalib = template .getPhotoCalib ()
258
258
diffImPsf = self ._computePsf (diffIm , diffIm .psf .getAveragePosition ())
259
- sciencePsf = self ._computePsf (calexp , calexp .psf .getAveragePosition ())
259
+ sciencePsf = self ._computePsf (science , science .psf .getAveragePosition ())
260
260
templatePsf = self ._computePsf (template , template .psf .getAveragePosition ())
261
261
262
262
n_sources = len (diaSourceCat )
@@ -296,12 +296,12 @@ def run(self,
296
296
diffImPhotoCalib ,
297
297
diaSource ["diaSourceId" ],
298
298
averagePsf = diffImPsf )
299
- calexpCutout = self .createCcdDataCutout (
300
- calexp ,
299
+ scienceCutout = self .createCcdDataCutout (
300
+ science ,
301
301
sphPoint ,
302
302
pixelPoint ,
303
303
cutoutExtent ,
304
- calexpPhotoCalib ,
304
+ sciencePhotoCalib ,
305
305
diaSource ["diaSourceId" ],
306
306
averagePsf = sciencePsf )
307
307
templateCutout = self .createCcdDataCutout (
@@ -322,7 +322,7 @@ def run(self,
322
322
objSourceHistory ,
323
323
objDiaForcedSources ,
324
324
diffImCutout ,
325
- calexpCutout ,
325
+ scienceCutout ,
326
326
templateCutout ))
327
327
328
328
if self .config .doProduceAlerts :
@@ -524,7 +524,7 @@ def makeAlertDict(self,
524
524
objDiaSrcHistory ,
525
525
objDiaForcedSources ,
526
526
diffImCutout ,
527
- calexpCutout ,
527
+ scienceCutout ,
528
528
templateCutout ):
529
529
"""Convert data and package into a dictionary alert.
530
530
@@ -541,8 +541,8 @@ def makeAlertDict(self,
541
541
diffImCutout : `astropy.nddata.CCDData` or `None`
542
542
Cutout of the difference image around the location of ``diaSource``
543
543
with a min size set by the ``cutoutSize`` configurable.
544
- calexpCutout : `astropy.nddata.CCDData` or `None`
545
- Cutout of the calexp around the location of ``diaSource``
544
+ scienceCutout : `astropy.nddata.CCDData` or `None`
545
+ Cutout of the science image around the location of ``diaSource``
546
546
with a min size set by the ``cutoutSize`` configurable.
547
547
templateCutout : `astropy.nddata.CCDData` or `None`
548
548
Cutout of the template image around the location of ``diaSource``
@@ -572,10 +572,10 @@ def makeAlertDict(self,
572
572
else :
573
573
alert ['cutoutDifference' ] = self .streamCcdDataToBytes (diffImCutout )
574
574
575
- if calexpCutout is None :
575
+ if scienceCutout is None :
576
576
alert ['cutoutScience' ] = None
577
577
else :
578
- alert ['cutoutScience' ] = self .streamCcdDataToBytes (calexpCutout )
578
+ alert ['cutoutScience' ] = self .streamCcdDataToBytes (scienceCutout )
579
579
580
580
if templateCutout is None :
581
581
alert ["cutoutTemplate" ] = None
0 commit comments