-
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-942: Remove Units from Reference File Datamodels #1474
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…mancal into RCAL-942_RemoveUnits
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1474 +/- ##
==========================================
- Coverage 28.60% 28.59% -0.02%
==========================================
Files 112 112
Lines 7576 7576
==========================================
- Hits 2167 2166 -1
- Misses 5409 5410 +1 ☔ View full report in Codecov by Sentry. |
That looks good. Hopefully we will hear this afternoon on the status of making new unit-free ref files. |
As expected, there are some failing regression files that need new reference files: |
for more information, see https://pre-commit.ci
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. I left one comment about a stray comment inline. Let's merge once regression tests are passing with the new files.
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!
Latest regression tests: They show that the photom schema was changed so that the conversion factors are numbers but the photom files were not updated. I think it can go either way - either change the reference files or change the code in romancal. Was their a decision about the photom files? @PaulHuwe @schlafly @rcosenti-stsci |
Our intent was to remove the units from the photom files as well (no units in files to make them more archival). That would mean that @rcosenti-stsci would need to resubmit these files. I think that the schema looks correct and so this would not require any more work on the CRDS / release end. @PaulHuwe , @nden , does that match what you're thinking? |
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 looked at the changes here again and they all look good. I am toying with the idea of merging it ~now so that at least unit tests start working again, in which case @PaulHuwe would follow up with a new PR if the regression tests require more work. Any reason not to do that?
@@ -23,8 +23,8 @@ dependencies = [ | |||
"photutils >=1.13.0", | |||
"pyparsing >=2.4.7", | |||
"requests >=2.26", | |||
# "roman_datamodels>=0.22.0,<0.23.0", | |||
"roman_datamodels @ git+https://github.com/spacetelescope/roman_datamodels.git", |
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.
Is there an advantage to this outside of a release? Should we point this back and the git version of roman_datamodels?
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 will be changed by as soon as a rad/rdm change is made. I'd only keep this as is if we plan on making a romancal release immediately with these changes.
Resolves RCAL-942
Closes #1472
This PR removes units from reference file datamodels.
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