Skip to content

Commit

Permalink
Add support for header fixups
Browse files Browse the repository at this point in the history
Add one fixup for the AuxTel file that is already in the test
suite.
  • Loading branch information
timj committed Apr 9, 2019
1 parent 248b7f5 commit f7aaabd
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 f7aaabd

Please sign in to comment.