-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add protections against duplicate frames #545
base: master
Are you sure you want to change the base?
Add protections against duplicate frames #545
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #545 +/- ##
==========================================
+ Coverage 85.41% 85.74% +0.32%
==========================================
Files 22 27 +5
Lines 3957 3991 +34
==========================================
+ Hits 3380 3422 +42
+ Misses 577 569 -8 ☔ View full report in Codecov by Sentry. |
This passes the regression tests: |
# Add the frame as an attribute of the pipeline | ||
super().__setattr__(value.frame.name, value.frame) |
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 tried to use a __getattr__
method instead of this but it broke deep copies in some cases for JWST and Romancal regression tests.
This will eventually simplify the WCS object and divide the code into areas of responsibility for better organization.
This does two things, 1. updates to using the "new" astropy doc theme 2. properly displays the methods inherited from parents in the docs.
3d52018
to
7852bf7
Compare
This PR refactors GWCS with the goal of fixing issue #178; namely, that adding two frames with the same name causes the gwcs to behave weirdly.
This is accomplished by pulling the "pipeline" management code into a separate object and then adding protections in that object to prevent two frames of the same name to be added. Moreover, it also makes sure the last transform in the pipeline is
None
as there is nothing for it to transform to.