File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
python/lsst/obs/subaru/strayLight Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1616
1717__all__ = ["SubaruStrayLightTask" ]
1818
19- import datetime
2019from typing import Optional
2120
2221import numpy
2322from astropy .io import fits
2423import scipy .interpolate
2524
25+ from lsst .daf .base import DateTime
2626from lsst .geom import Angle , degrees
2727from lsst .daf .butler import DeferredDatasetHandle
2828from lsst .ip .isr .straylight import StrayLightConfig , StrayLightTask , StrayLightData
3333
3434BAD_THRESHOLD = 500 # Threshold for identifying bad pixels in the reconstructed dark image
3535
36+ # LEDs causing the stray light were been covered up by his date.
37+ # We believe there is no remaining stray light.
38+ _STRAY_LIGHT_FIXED_DATE = DateTime ("2018-01-01T00:00:00Z" , DateTime .UTC )
39+
3640
3741class SubaruStrayLightTask (StrayLightTask ):
3842 """Remove stray light in the y-band
@@ -61,9 +65,7 @@ def check(self, exposure):
6165 if detId in range (104 , 112 ):
6266 # No correction data: assume it's zero
6367 return False
64- if exposure .getInfo ().getVisitInfo ().getDate ().toPython () >= datetime .datetime (2018 , 1 , 1 ):
65- # LEDs causing the stray light have been covered up.
66- # We believe there is no remaining stray light.
68+ if exposure .visitInfo .date >= _STRAY_LIGHT_FIXED_DATE :
6769 return False
6870
6971 return True
You can’t perform that action at this time.
0 commit comments