8000 JP-3547: Fix MIRI array sizing for multiple inputs and pixel ratio != 1 by melanieclarke · Pull Request #8727 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-3547: Fix MIRI array sizing for multiple inputs and pixel ratio != 1 #8727

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

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

melanieclarke
Copy link
Collaborator
@melanieclarke melanieclarke commented Aug 26, 2024

Resolves JP-3547

Fixes an issue discovered during testing for #8596.

For MIRI, when there are multiple input files and pixel_scale_ratio is set to something other than 1.0, the output array size was being computed incorrectly: the pixel_scale_ratio was applied twice. This PR fixes that issue and adds a unit test for the multiple input case.

Checklist for PR authors (skip items if you don't have permissions or they are not applicable)

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • All comments are resolved
  • Make sure the JIRA ticket is resolved properly

@melanieclarke
Copy link
Collaborator Author

Copy link
codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.55%. Comparing base (e90cafa) to head (f78361d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8727   +/-   ##
=======================================
  Coverage   60.55%   60.55%           
=======================================
  Files         372      372           
  Lines       38371    38371           
=======================================
  Hits        23235    23235           
  Misses      15136    15136           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@melanieclarke
Copy link
Collaborator Author

Regtest failures all look unrelated - there are no changes to any spectral resampling products.

@melanieclarke melanieclarke marked this pull request as ready for review August 26, 2024 21:13
@melanieclarke melanieclarke requested a review from a team as a code owner August 26, 2024 21:13
Copy link
Collaborator
@emolter emolter left a comment

Choose a reason for hiding this comment

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

This looks great to me, just had two small questions about the unit test.

@drlaw1558
Copy link
Collaborator

LG2M: Fixes the issue with LRS slit data, and results look as expected in a test case of spec3-combined dithered data.

@melanieclarke
Copy link
Collaborator Author

@tapastro - can you please review for the maintainers?

Copy link
Contributor
@tapastro tapastro left a comment

Choose a reason for hiding this comment

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

LGTM - will wait for CI then merge.

@melanieclarke melanieclarke merged commit 5bce1b4 into spacetelescope:master Aug 29, 2024
29 checks passed
@melanieclarke melanieclarke deleted the jp-3547 branch August 29, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0