-
Notifications
You must be signed in to change notification settings - Fork 58
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 warning when coordinates dataset contains both positive and negative z_stats #699
Conversation
Codecov Report
@@ Coverage Diff @@
## main #699 +/- ##
==========================================
+ Coverage 85.31% 85.34% +0.02%
==========================================
Files 41 41
Lines 4521 4530 +9
==========================================
+ Hits 3857 3866 +9
Misses 664 664
Continue to review full report at Codecov.
|
It looks like the additions to |
I think this happens because |
Do you know how it's checked in |
I think it is checked when an images dataset is transformed to coordinates here: https://github.com/neurostuff/NiMARE/blob/main/nimare/tests/test_transforms.py#L131. We don't initialize a Dataset class here, so the changes to I think to test the changes to |
Maybe we can add z-stats to one of the test Datasets. |
I have added the new test, and it looks like it's covering |
I re-ran that step and it worked this time. I assume it was just a random upload issue. I'll take another quick look and approve if it looks good. |
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.
LGTM!
Great. Thanks! |
@JulioAPeraza do you want to merge this? |
Sure! |
Closes #465.
Changes proposed in this pull request:
z_stat
inDataset.coordinates.columns
.z_stat >= 0
ANDz_stat < 0
inDataset.__init__()
and when theImagesToCoordinates.transform()
is applied.