-
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
Remove units from MOS pipeline. #1441
Remove units from MOS pipeline. #1441
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
… ELP (spacetelescope#1373) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Zach Burnett <[email protected]> Co-authored-by: Brett <[email protected]>
Co-authored-by: Ned Molter <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1441 +/- ##
===========================================
- Coverage 78.38% 62.12% -16.27%
===========================================
Files 118 76 -42
Lines 7680 3200 -4480
===========================================
- Hits 6020 1988 -4032
+ Misses 1660 1212 -448
*This pull request uses carry forward flags. Click here to find out more. ☔ 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.
This looks good to me for now, but we will want to hold off merging until we remove the need for the RegtestFileModifier. I also left one comment about a ".value" that confused me.
[log.error(line) for line in message.splitlines()] | ||
raise ValueError(message) | ||
log.info(message) | ||
return |
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 just delete this stanza. Do we special case the "already complete" step anywhere else?
@@ -162,7 +160,7 @@ def pixel_area(self): | |||
pixel_area = self.model.meta.photometry.pixelarea_steradians | |||
if pixel_area < 0: | |||
pixel_area = (self._pixel_scale**2).to(u.sr) | |||
return pixel_area | |||
return pixel_area.value |
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 is fine, though I'm a little confused since I thought you removed the units from model.meta.photometry.
Closing this PR, since the work from here was merged into PR 1445. |
Resolves RCAL-911
Closes #
This PR addresses ...
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