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-3373 Port HSC code for generation of calibration products #28

Merged
merged 2 commits into from Mar 8, 2016

Conversation

hsinfang
Copy link
Contributor

No description provided.

def addRow(self, conn, info, *args, **kwargs):
"""Add a row to the file table"""
info[self.config.validStart] = None
info[self.config.validEnd] = None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These seem to prompt additional changes for obs_decam. See comments in Jira.

@PaulPrice PaulPrice force-pushed the tickets/DM-3373 branch 2 times, most recently from f623188 to f3a7ed3 Compare March 8, 2016 19:51
We aim to have the calib registry end up in the calib root directory. To
this end, we modify RegisterTask.openRegistry to take a directory instead
of the butler (the butler was only being used to determine the directory).

Our only access to the calib root directory is through the "--calib"
command-line argument; if that is not provided, write to the current
working directory for the user to move into the correct place.
Several assumptions within ingestCalibs were specific to obs_decam (esp.
the use of the hard-coded "ccdnum" data identifier keyword). Made these
assumptions configurable.

This also involved updating the validity range calculations, which have
been moved to a common place (fixSubsetValidity) instead of being in two
places (IngestCalibsTask.run and fixSubsetValidity) and requiring users
to set validStart and validEnd to dummy values.

In the process, updated SQL to use placeholders instead of stringified
values to proactively prevent escaping problems (similar to SQL injection).
@PaulPrice PaulPrice merged commit 7bc9153 into master Mar 8, 2016
@ktlim ktlim deleted the tickets/DM-3373 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