Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit f5a7ab7

Browse files
authored
Merge pull request #8 from brainsciencecenter/master
ENH: Add dwi regexes to match HCP and ABCD
2 parents dbd51a1 + 1969a43 commit f5a7ab7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classification_from_label.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def is_anatomy(label):
114114
# Diffusion
115115
def is_diffusion(label):
116116
regexes = [
117+
re.compile('^dmri_', re.IGNORECASE),
118+
re.compile('_dmri$', re.IGNORECASE),
117119
re.compile('dti', re.IGNORECASE),
118120
re.compile('dwi', re.IGNORECASE),
119121
re.compile('diff_', re.IGNORECASE),

0 commit comments

Comments
 (0)