Skip to content

Commit 2003da3

Browse files
committed
Merge branch 'release/v2.4.0' of https://github.com/daducci/COMMIT into release/v2.4.0
2 parents 37898d9 + a210d75 commit 2003da3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

commit/core.pyx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ cdef class Evaluation :
118118
self.set_config('version', get_distribution('dmri-commit').version)
119119
self.set_config('study_path', study_path)
120120
self.set_config('subject', subject)
121-
self.set_config('DATA_path', pjoin( study_path, subject ))
122-
self.set_config('TRACKING_path', pjoin( study_path, subject, dictionary_path ))
121+
122+
if study_path == subject:
123+
self.set_config('DATA_path', study_path)
124+
self.set_config('TRACKING_path', pjoin( study_path, dictionary_path ))
125+
else:
126+
self.set_config('DATA_path', pjoin( study_path, subject ))
127+
self.set_config('TRACKING_path', pjoin( study_path, subject, dictionary_path ))
123128

124129
self.set_config('doNormalizeSignal', True)
125130
self.set_config('doMergeB0', False)

0 commit comments

Comments
 (0)