Match multiple T1s with matching run entity#1309
Open
levje wants to merge 1 commit intoscilus:masterfrom
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1309 +/- ##
==========================================
- Coverage 72.72% 72.71% -0.02%
==========================================
Files 295 295
Lines 25445 25449 +4
Branches 3565 3566 +1
==========================================
Hits 18505 18505
- Misses 5437 5440 +3
- Partials 1503 1504 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
arnaudbore
reviewed
Feb 16, 2026
| t1_paths = [curr_t1.path for curr_t1 in t1_nSess] | ||
| logging.warning('More than one T1 file found.' | ||
| ' [{}]'.format(','.join(t1_paths))) | ||
| t1_run_match = [t for t in t1_nSess if t.entities.get('run') == nRun] |
Contributor
There was a problem hiding this comment.
t.entities('run') always pre-defined ?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Quick description
I'm encountering issues when parsing the BIDS layout when there's the following scenario:
ses-1andrun-1ses-1: a T1 forrun-1and another one forrun-2.I'd like to possibly match the DWI with its matching T1 (
ses-1andrun-1).Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
...
Checklist