-
Notifications
You must be signed in to change notification settings - Fork 74
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
Deprecate subset getters #2242
Deprecate subset getters #2242
Conversation
31af089
to
31f28be
Compare
e18c922
to
02338fe
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2242 +/- ##
==========================================
- Coverage 91.76% 91.37% -0.40%
==========================================
Files 150 150
Lines 16847 16862 +15
==========================================
- Hits 15460 15407 -53
- Misses 1387 1455 +68
☔ View full report in Codecov by Sentry. |
Also, are you feeling adventurous? 😆 @javerbukh , "... do we want to keep using |
be0ca66
to
92c0bd8
Compare
Falling a little behind schedule so I'm going to leave this work out |
Not a blocker but when I do
I understand why the warning was issued for |
|
I'm not sure; the even weirder thing is that it's warning is coming from |
|
Try turning warning into error in your session and inspect the traceback. Maybe somewhere deep in the machinery, one deprecated function is calling another deprecated function. |
Please add a change log. Thanks! |
Also need a rebase because that one-liner bug fix has been merged as #2258 . |
…dcoded viewer ref names
Co-authored-by: Jesse Averbukh <[email protected]>
and fix change log
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 applied my review as commits, so LGTM now. @javerbukh will do the final review.
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.
Looks good, thank you!
Thank you everyone for merging this in my absence! |
Description
This PR identifies existing locations in our codebase that utilize our old subset and data getters and replaces it with our new get_subsets/getdata methods. Specifically, the following three changes:
In addition, I had to fix a bug with the
Mosviz2DProfileViewer.get_data()
method where it was returningstatistic=mean
of the Spectrum1D object by default due to not having the ability to specify thestatistic
. I added a keyword argument and changed the default tostatistic=None
I think I got all the docs changes, but let me know if I missed something!
FYI decreased coverage is due to the
get_subsets_from_viewer
andget_data_from_viewer
methods not being covered by tests anymoreFixes #2224
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.