-
Notifications
You must be signed in to change notification settings - Fork 28
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
rcal-700 Update exposure pipeline to correct cal_step and suffixes #971
Conversation
840584f
to
eef5d30
Compare
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. There were a couple of lines that surprised me that I noted inline.
@@ -171,8 +174,12 @@ def process(self, input): | |||
result.meta.cal_step.photom = "SKIPPED" | |||
result.meta.cal_step.source_detection = "SKIPPED" | |||
result.meta.cal_step.tweakreg = "SKIPPED" | |||
self.suffix = "COMPLETE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks weird? Do we really want to set the file name suffix to COMPLETE?
if file_type == "asn": | ||
result = self.tweakreg(tweakreg_input) | ||
for model in result._models: | ||
model.meta.cal_step.tweakreg = "SKIPPED" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I expected COMPLETE here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When tweakreg is run with the option "--steps.tweakreg.skip=True" it is not honoring that and setting the step to skipped. So for the test RCAL-665 to pass this needs to be manually set to "SKIPPED".
This should not remain in place. My plan is to write a function that will check the skip flag that is passed to the step and set it appropriately and use this for all the pipeline steps. I think we should have a uniform method. I checked JWST and they seem to handle this flag in a non-uniform manner and I don't want to reproduce that. I'd like to fix this after B12.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks.
3cdcce6
to
fd2464a
Compare
for more information, see https://pre-commit.ci
…pacetelescope#971) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Resolves RCAL-700
Closes #962
This PR
For SDF the first stage of the pipeline will run and produce
with the cal_step for tweakreg set to
tweakreg SKIPPED
The second step will run tweakreg on the individual files produced and yield _cal files
with
with the cal_step for tweakreg set to
tweakreg COMPLETE
Checklist
CHANGES.rst
under the corresponding subsectionRegression testing is currently broken, local tests pass