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

JP-2090: Update set_velocity_aberration to use DataModel #8285

Merged
merged 7 commits into from
Mar 6, 2024

Conversation

emolter
Copy link
Collaborator

@emolter emolter commented Feb 19, 2024

Resolves JP-2090

Closes #6053

This PR addresses updating the set_velocity_aberration script to use DataModels instead of fits for opening and manipulating data.

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

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: Patch coverage is 94.44444% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 75.37%. Comparing base (4cc0ac1) to head (2e60ee3).
Report is 15 commits behind head on master.

❗ Current head 2e60ee3 differs from pull request most recent head f35c4e2. Consider uploading reports for the commit f35c4e2 to get more accurate results

Files Patch % Lines
jwst/lib/set_velocity_aberration.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8285      +/-   ##
==========================================
+ Coverage   75.15%   75.37%   +0.21%     
==========================================
  Files         470      474       +4     
  Lines       38604    38921     +317     
==========================================
+ Hits        29014    29337     +323     
+ Misses       9590     9584       -6     
Flag Coverage Δ *Carryforward flag
nightly 77.33% <ø> (-0.06%) ⬇️ Carriedforward from 12b7c94

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

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

@emolter emolter marked this pull request as ready for review February 19, 2024 19:56
@emolter emolter requested a review from a team as a code owner February 19, 2024 19:56
@hbushouse
Copy link
Collaborator

Did you do a regression test run? I'm not sure we have any tests that cover this script, but it can't hurt.

@emolter
Copy link
Collaborator Author

emolter commented Mar 5, 2024

Did you do a regression test run? I'm not sure we have any tests that cover this script, but it can't hurt.

I did not - the test coverage is inside lib/tests/test_velocity_aberration.py. I will do a regression test run anyway, though

@emolter
Copy link
Collaborator Author

emolter commented Mar 5, 2024

started this Jenkins run

Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

These code updates look fine. But before we approve and merge, I'm doing some research into JP-896, which suggests we might need/want to add another fix to this script, in order to have it use velocity information in the proper reference frame. That ticket suggests that these calculations should be using velocities that are in the heliocentric frame, but the keyword values we're using are actually in the Earth-centered frame. I'm trying to track down exactly what's going on with all of that.

CHANGES.rst Outdated Show resolved Hide resolved
Co-authored-by: Howard Bushouse <bushouse@stsci.edu>
@hbushouse
Copy link
Collaborator

Regression test run results are clean and JP-896 has been verified to no longer be an issue (fixed long ago in DMS build 7.8), so no further updates are needed to fix any old issues in this PR.

CHANGES.rst Outdated Show resolved Hide resolved
@hbushouse hbushouse merged commit 773f182 into spacetelescope:master Mar 6, 2024
25 checks passed
@emolter emolter deleted the JP-2090 branch March 6, 2024 14:07
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.

Update set_velocity_aberration to use DataModel
2 participants