-
Notifications
You must be signed in to change notification settings - Fork 130
[MAINT] update tests to check content of EMG, eyetracking and atlas datasets #1221
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
Open
Remi-Gau
wants to merge
4
commits into
bids-standard:main
Choose a base branch
from
Remi-Gau:enh/eye_atlas_emg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+34
−1
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,9 +61,42 @@ def test_layout_on_examples_with_derivatives(dataset, nb_files, bids_examples): | |
| ("mrs_fmrs", 169), | ||
| ("mrs_biggaba", 172), | ||
| ("mrs_2dmrsi", 67), | ||
| ("emg_ConcurrentIndependentUnits", 18), | ||
| ("emg_CustomBipolar", 7), | ||
| ("emg_CustomBipolarFace", 11), | ||
| ("emg_IndependentMod", 7), | ||
| ("emg_MultiBodyParts", 10), | ||
| ("emg_Multimodal", 21), | ||
| ("emg_TwoHDsEMG", 12), | ||
| ("emg_TwoWristbands", 10), | ||
| ("eyetracking_binocular", 21), | ||
| ("eyetracking_fmri", 30), | ||
| ], | ||
| ) | ||
| def test_layout_on_examples_no_derivatives(dataset, nb_files, bids_examples): | ||
| layout = BIDSLayout(bids_examples / dataset) | ||
| files = layout.get() | ||
| assert len(files) == nb_files | ||
| assert len(files) == nb_files | ||
|
|
||
| @pytest.mark.xfail(reason="atlas datasets are not fully supported in pybids") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. those currently fail: I would expect that given the current configs we have |
||
| @pytest.mark.parametrize( | ||
| "dataset, nb_files", | ||
| [ | ||
|
|
||
| ("atlas-4S", 48), | ||
| ("atlas-AAL", 7), | ||
| ("atlas-Destrieux", 7), | ||
| ("atlas-DiFuMo", 19), | ||
| ("atlas-HarvardOxford", 9), | ||
| ("atlas-HOSPA", 27), | ||
| ("atlas-Juelich", 9), | ||
| ("atlas-Schaefer", 10), | ||
| ("atlas-suit", 18), | ||
| ("atlas-Talairach", 19), | ||
| ], | ||
| ) | ||
| def test_layout_on_examples_derivatives(dataset, nb_files, bids_examples): | ||
| """Check n files found in derivative dataset.""" | ||
| layout = BIDSLayout(bids_examples / dataset, config="derivatives") | ||
| files = layout.get() | ||
| assert len(files) == nb_files | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 am a bit more confused as to why those pass given that some files from those datasets have entities, suffixes that do not appear in the config
I must be missing something obvious
I am tired
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.
They should pass because the validator is now schema based.
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.
ha yes you mentioned
but what becomes of the config file then?
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.
also those are failing with the min dependencies: https://github.com/bids-standard/pybids/actions/runs/22472040716/job/65090910932?pr=1221#step:10:1647
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 suppose we could make those tests contingent on the bidsschematools version?
The config file needs updating to give you access to new entities (or you can use @astewartau's recent contribution in #1215),