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

Move examples from conftest to an examples module #521

Merged
merged 5 commits into from
Nov 1, 2024

Conversation

WilliamJamieson
Copy link
Collaborator

This makes it easier to interactively work with GWCS using pre-made models.

@WilliamJamieson WilliamJamieson requested a review from a team as a code owner October 30, 2024 14:08
@WilliamJamieson WilliamJamieson requested a review from nden October 30, 2024 14:09
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 98.03150% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.41%. Comparing base (eb9d316) to head (dec6eda).
Report is 21 commits behind head on master.

Files with missing lines Patch % Lines
gwcs/examples.py 98.26% 4 Missing ⚠️
gwcs/tests/conftest.py 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #521      +/-   ##
==========================================
+ Coverage   87.28%   87.41%   +0.13%     
==========================================
  Files          22       22              
  Lines        3821     3869      +48     
==========================================
+ Hits         3335     3382      +47     
- Misses        486      487       +1     

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

Comment on lines +471 to +473
# pipeline = [('detector', wcs_forward), (comp_frm, None)]
w = wcs.WCS(forward_transform=wcs_forward, output_frame=comp_frm,
input_frame=detector_frame)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should this be updated to

Suggested change
# pipeline = [('detector', wcs_forward), (comp_frm, None)]
w = wcs.WCS(forward_transform=wcs_forward, output_frame=comp_frm,
input_frame=detector_frame)
pipeline = [(detector_frame, wcs_forward), (comp_frm, None)]
w = wcs.WCS(pipeline)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the above is still an allowed way to initialize a WCS object. Let's keep it as is.

@nden nden added the testing label Nov 1, 2024
@nden nden added this to the 0.22 milestone Nov 1, 2024
@nden nden merged commit 8a9086c into spacetelescope:master Nov 1, 2024
22 of 23 checks passed
@WilliamJamieson WilliamJamieson deleted the refactor_move_examples branch November 4, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants