-
Notifications
You must be signed in to change notification settings - Fork 613
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
[FIX] add two_sided parameter to RegionExtractor #4849
base: main
Are you sure you want to change the base?
Conversation
👋 @hndgzkn Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4849 +/- ##
=======================================
Coverage 93.66% 93.66%
=======================================
Files 136 136
Lines 17169 17170 +1
Branches 2973 2973
=======================================
+ Hits 16082 16083 +1
Misses 577 577
Partials 510 510 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
two_sided : :obj:`bool`, default=False | ||
Whether the thresholding should yield both positive and negative | ||
part of the maps. |
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.
two_sided : :obj:`bool`, default=False | |
Whether the thresholding should yield both positive and negative | |
part of the maps. | |
two_sided : :obj:`bool`, default=False | |
Whether the thresholding should yield both positive and negative | |
part of the maps. | |
just adding some vertical spacing: a lot of our doc string don't have them and it hinders readability 😉
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 think I'd be more comfortable if we had a test for this
Yes, I agree. I try to understand how to test it. Shall I also update change log bug fix part? |
Hi @Remi-Gau , Is there a way to create maps that contain positive and negative regions using |
yes: I opened a PR to recreate the doc/changes/latest.rst file where you can update the changelod |
no idea but if you need something that does it don't hesitate to create a new function for it |
Ok, I try to understand how I can do it . |
maybe have a look to make sure it does not interfere with yours |
Thank you for sharing this PR, the discussion helps me understand a bit more on thresholding. The issue that we address is different, however it can be the reason that I cannot create maps with positive and negative regions, or lose the values by thresholding. I need to understand how it works and how it should work. I'll be more explicit later :) |
If you feel that some bits of the code could do with more comments / refactoring to help faster understanding, don't hesitate to open PR that just do that. |
|
Closes [BUG] RegionExtractor does not have a two-tailed behavior. #4409 .
Adds parameter
two_sided
to RegionExtractor.Sets default value to
False
.Updates docstring.