Skip to content

Commit

Permalink
Merge pull request #97 from lsst/tickets/DM-19188
Browse files Browse the repository at this point in the history
DM-19188: Add support for header fixups
  • Loading branch information
timj committed Apr 12, 2019
2 parents aebabf3 + d95068e commit 883c11a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions corrections/LATISS-AT_O_20190329_000022.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
EXPTIME: 0.0
DARKTIME: 0.0
IMGTYPE: bias
12 changes: 12 additions & 0 deletions python/lsst/obs/lsst/translators/lsst.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ class LsstBaseTranslator(FitsTranslator):
detectorSerials = None
"""Mapping of detector serial number to raft, number, and name."""

def search_paths(self):
"""Search paths to use for LSST data when looking for header correction
files.
Returns
-------
path : `list`
List with a single element containing the full path to the
``corrections`` directory within the ``obs_lsst`` package.
"""
return [os.path.join(obs_lsst_packageDir, "corrections")]

@staticmethod
def compute_detector_exposure_id(exposure_id, detector_num):
"""Compute the detector exposure ID from detector number and
Expand Down
4 changes: 2 additions & 2 deletions tests/test_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ def test_auxtel_translator(self):
dict(telescope="LSSTAuxTel",
instrument="LATISS",
boresight_rotation_coord="unknown",
dark_time=-1.0*u.s,
dark_time=0.0*u.s,
detector_exposure_id=2019032900022,
detector_group="RXX",
detector_name="S00",
detector_num=0,
detector_serial="ITL-3800C-098",
exposure_id=2019032900022,
exposure_time=-1.0*u.s,
exposure_time=0.0*u.s,
object="UNKNOWN",
observation_id="AT_O_20190329_000022",
observation_type="bias",
Expand Down

0 comments on commit 883c11a

Please sign in to comment.