-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added translator for CircleAnnulusPixelRegion
#90
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #90 +/- ##
==========================================
+ Coverage 97.34% 97.38% +0.03%
==========================================
Files 18 18
Lines 1355 1375 +20
==========================================
+ Hits 1319 1339 +20
Misses 36 36
☔ View full report in Codecov by Sentry. |
I think Windows failure is transient download problem. |
Just so I understand, the takes an accurately defined CircleAnnulusPixelRegion (with matching centres) as input, not the case of an imperfectly drawn one discussed in #49? |
Yeah, I decided there is no point in guessing at an imperfect drawing. I am thinking of how to make this useful over at spacetelescope/jdaviz#2164 |
Yep, worked on re-run. |
Thanks for the reviews! I believe I have addressed all the comments and added a test. |
|
||
# Put this here because there is nowhere else to put it. | ||
# https://github.com/glue-viz/glue/issues/2390 | ||
def _annulus_to_subset_state(reg, data): |
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.
xref glue-viz/glue#2390
Co-authored-by: Derek Homeier <[email protected]>
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.
Thanks for the fix and the tests cleanup! Should this rather go in as bugfix?
It is technically a new feature. |
CircleAnnulusPixelRegion
CircleAnnulusPixelRegion
CircleAnnulusPixelRegion
Thanks! |
Is this released yet? |
This adds a one-way translator for
CircleAnnulusPixelRegion
.Fix #49