-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:1
-
Sprint:2DDRP-2022 B
Running reduceExposure.py with 2D sky subtraction enabled using the calib CALIB-PFI-20211220 fails in the aperture correction computation:
$ reduceExposure.py /projects/HSC/PFS/Subaru --calib /projects/HSC/PFS/Subaru/CALIB-PFI-20211220 --rerun=hassans/sunss/v46588_calibpfi --doraise --id visit=46588 arm=b^r -c measurePsf.oversampleFactor=11 measurePsf.version=Aug0121_v1 measurePsf.targetSize=21 doWriteCalexp=True doSubtractSky2d=True doMeasurePsf=True isr.doFlat=False
File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/reduceExposure.py", line 278, in runDataRef linesList, apCorrList) File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 164, in run image = self.subtractSky(exposure, psf, fiberTrace, detectorMap, pfsConfig, sky2d, apCorr) File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 295, in subtractSky image = self.makeSkyImage(exposure.getBBox(), psf, fiberTraces, pfsConfig, sky2d, apCorr) File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 259, in makeSkyImage model.flux[ii], invert=True) File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/apertureCorrections.py", line 316, in calculateApertureCorrection result = apCorr(wavelength, pfsConfig.select(fiberId=fiberId)) File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/focalPlaneFunction.py", line 156, in __call__ result.values = result.values[0] IndexError: index 0 is out of bounds for axis 0 with size 0
This is not the case when using the CALIB-SuNSS-2021-06-16 calib. Please investigate.