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

Tickets/dm-3766: A new Task ingestCalibs #19

Merged
merged 3 commits into from Oct 2, 2015
Merged

Conversation

hsinfang
Copy link
Contributor

ingest.py is modified slightly for more general use, and ingestCalibs.py is created for parsing through calibration data and creating a calibration registry.

from lsst.pipe.tasks.ingest import RegisterTask, ParseTask, RegisterConfig

def _convertToDate(dateString):
"""Convert a string into a date"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's converting a string into a date object. "date" is ambiguous as it could just mean that it is finding the date in the string and returning the date as a string. I know it's a "private" method, but it should document that it returns None if no date string can be located.

@hsinfang hsinfang force-pushed the tickets/DM-3766 branch 3 times, most recently from 5f9036b to 7627862 Compare September 29, 2015 17:57
Same behaviors are kept by default.
@hsinfang hsinfang force-pushed the tickets/DM-3766 branch 4 times, most recently from 0fa09db to 742511f Compare October 1, 2015 15:31
It uses and expands IngestTask to parse through the file headers
for information and add to the calibration registry of the data
repository.  Dataset type (e.g. bias/dark/flat/fringe) is
determined by the header info OBSTYPE, and by default the
calibration images are valid on the observation date only.
Optional argument "validity" can be used to set a wider validity
period on the command line. Overlaps in validity ranges are fixed.
@hsinfang hsinfang merged commit 5c91ff2 into master Oct 2, 2015
@ktlim ktlim deleted the tickets/DM-3766 branch August 25, 2018 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants