-
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-941: Update romancal to use new L1/L2 schema. #1473
RCAL-941: Update romancal to use new L1/L2 schema. #1473
Conversation
for more information, see https://pre-commit.ci
2bc8ed0
to
b4c9108
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1473 +/- ##
==========================================
+ Coverage 76.15% 76.19% +0.04%
==========================================
Files 115 115
Lines 7638 7626 -12
==========================================
- Hits 5817 5811 -6
+ Misses 1821 1815 -6 ☔ View full report in Codecov by Sentry. |
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.
A few comments inline, thanks!
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 good to me. A few very minor comments inline.
romancal/flatfield/flat_field.py
Outdated
else: | ||
apply_flat_field(output_model, flat_model) | ||
output_model.meta.cal_step.flat_field = "COMPLETE" | ||
output_model.meta.cal_step["flat_field"] = "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.
Would you mind explaining this change? I think I thought that flat_field was in the schema and could use the "." notation?
frames_per_group = meta.exposure.nframes | ||
# FIXME: since frames_per_group => meta.exposure.nframes has been removed, | ||
# we need to fix stcal.jump.jump to remove it from there too | ||
frames_per_group = 1 |
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.
Note that we don't actually use this jump mode any longer; we should probably just open a ticket to remove this step. I'll do that now.
But for this ticket this is fine.
# convert to model.cal_logs type to avoid validation errors | ||
model.meta.cal_logs = type(model.meta.cal_logs)(self.log_records) | ||
if isinstance(model, MosaicModel): |
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 we should put them under meta in both cases, but this is good for now; we can delay until the coming L3 metadata refactoring.
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.
LGTM
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.
Thanks, looks good!
Resolves RCAL-941
This PR updates
romancal
to comply with the changes in L1/L2 schema. All the unit and regression tests have been updated.Regression Tests
Tasks
24Q4_B15
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)docs/
pageokify_regtests
to update the truth filesnews fragment change types...
changes/<PR#>.general.rst
: infrastructure or miscellaneous changechanges/<PR#>.docs.rst
changes/<PR#>.stpipe.rst
changes/<PR#>.associations.rst
changes/<PR#>.scripts.rst
changes/<PR#>.mosaic_pipeline.rst
changes/<PR#>.patch_match.rst
steps
changes/<PR#>.dq_init.rst
changes/<PR#>.saturation.rst
changes/<PR#>.refpix.rst
changes/<PR#>.linearity.rst
changes/<PR#>.dark_current.rst
changes/<PR#>.jump_detection.rst
changes/<PR#>.ramp_fitting.rst
changes/<PR#>.assign_wcs.rst
changes/<PR#>.flatfield.rst
changes/<PR#>.photom.rst
changes/<PR#>.flux.rst
changes/<PR#>.source_detection.rst
changes/<PR#>.tweakreg.rst
changes/<PR#>.skymatch.rst
changes/<PR#>.outlier_detection.rst
changes/<PR#>.resample.rst
changes/<PR#>.source_catalog.rst