Skip to content

Commit

Permalink
Add dayObs and seqNum to lsstCam butler registry
Browse files Browse the repository at this point in the history
Also remove testType since it's the same as imgType.
  • Loading branch information
timj committed Mar 21, 2019
1 parent d5b32d8 commit a4e5a8f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions config/lsstCam/ingest.py
@@ -0,0 +1,34 @@
# This file is part of obs_lsst.
#
# Developed for the LSST Data Management System.
# This product includes software developed by the LSST Project
# (http://www.lsst.org).
# See the COPYRIGHT file at the top-level directory of this distribution
# for details of code ownership.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

from lsst.obs.lsst.ingest import LsstCamParseTask

config.parse.retarget(LsstCamParseTask)

del config.parse.translation['testType']

config.parse.translation["seqNum"] = "SEQNUM"
config.parse.translators['dayObs'] = 'translate_dayObs'

config.register.columns['dayObs'] = 'text'
config.register.columns['seqNum'] = 'int'
del config.register.columns['testType']
Binary file modified data/input/lsstCam/registry.sqlite3
Binary file not shown.
3 changes: 2 additions & 1 deletion tests/test_parsetask.py
Expand Up @@ -350,7 +350,8 @@ def test_parsetask_lsstCam_translator(self):
expTime=0.0,
object='UNKNOWN',
imageType='BIAS',
testType='BIAS',
seqNum=1,
dayObs="2019-03-19",
filter='NONE',
lsstSerial='ITL-3800C-041',
date='2019-03-19T15:50:28.145',
Expand Down

0 comments on commit a4e5a8f

Please sign in to comment.