Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-15093: yStrayLight: disable correction after 2018-01-01 #140

Merged
merged 1 commit into from
Jul 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions python/lsst/obs/subaru/strayLight/yStrayLight.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
__all__ = ["StrayLightTask"]

import os
import datetime

import numpy
from astropy.io import fits
Expand Down Expand Up @@ -83,13 +84,10 @@ def run(self, sensorRef, exposure):
if sensorRef.dataId["ccd"] in range(104, 112):
# No correction data: assume it's zero
return

# The LEDs that are causing the Y straylight have not been covered yet (on 2017-11-27),
# but they will be covered in the near future.
# Once the LEDs are covered, we will have to uncomment the following statement:
#
# if (ccdExposure is newer than a certain date):
# return
if exposure.getInfo().getVisitInfo().getDate().toPython() >= datetime.datetime(2018, 1, 1):
# LEDs causing the stray light have been covered up.
# We believe there is no remaining stray light.
return

header = sensorRef.get('raw_md')
if self.config.doRotatorAngleCorrection:
Expand Down