Skip to content
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

Fix logic in MIRI LRS spec3 regtest #7497

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

hbushouse
Copy link
Collaborator

@hbushouse hbushouse commented Mar 14, 2023

This PR fixes the currently flawed logic in the test_miri_lrs_slit_spec3 regression test module. The problem is that the spec3 pipeline is run multiple times on the same input data, using different specifications for how to create the output/combined image WCS, but all of those different runs get saved using the same s2d product file name. That's fine for most of the tests, because most result in a combined image of the same size, but the very last iteration creates a bigger image. When the "okify_regtests" script is used to update truth files, that last s2d file, which is different size, gets used to update the truth files for all tests, leading to subsequent failures. This PR updates the test module to save the result of the last iteration in a different output file, so that it doesn't clobber the truths for the other iterations.

Checklist for maintainers

  • 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
  • Make sure the JIRA ticket is resolved properly

@hbushouse
Copy link
Collaborator Author

New truth files have been uploaded to artifactory.

@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (cce1e62) 77.59% compared to head (b446e42) 77.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7497   +/-   ##
=======================================
  Coverage   77.59%   77.59%           
=======================================
  Files         452      452           
  Lines       36094    36094           
=======================================
  Hits        28008    28008           
  Misses       8086     8086           
Flag Coverage Δ *Carryforward flag
nightly 77.60% <ø> (ø) Carriedforward from cce1e62
unit 49.56% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hbushouse hbushouse merged commit 3632879 into spacetelescope:master Mar 14, 2023
@hbushouse hbushouse deleted the fix_lrs_regtest branch March 14, 2023 15:22
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.

1 participant