Skip to content
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

remove is_valid filter #2169

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Changes
- :func:`nilearn.plotting.view_connectome` now converts NaNs in the adjacency
matrix to 0.

- :func:`nilearn.datasets.fetch_neurovault` now does not filter out images that
have their metadata field `is_valid` cleared by default.

Fixes
-----

Expand Down
3 changes: 1 addition & 2 deletions nilearn/datasets/neurovault.py
Original file line number Diff line number Diff line change
Expand Up @@ -2074,13 +2074,12 @@ def basic_image_terms():
true:

- It is not in MNI space.
- Its metadata field "is_valid" is cleared.
- It is thresholded.
- Its map type is one of "ROI/mask", "anatomical", or "parcellation".
- Its image type is "atlas"

"""
return {'not_mni': False, 'is_valid': True, 'is_thresholded': False,
return {'not_mni': False, 'is_thresholded': False,
'map_type': NotIn('ROI/mask', 'anatomical', 'parcellation'),
'image_type': NotEqual('atlas')}

Expand Down