Skip to content

Commit 3334353

Browse files
committed
--ref_name cannot be mandatory
1 parent a9cb84e commit 3334353

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/multi-shell-harmonization.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,14 @@ def main(self):
150150

151151
# variables common to all ref_bvals
152152
pipeline_vars=[
153-
'--ref_name', self.reference,
154153
'--tar_name', self.target,
155154
'--nshm', self.N_shm,
156155
'--nproc', self.N_proc,
157156
'--template', self.templatePath,
158157
]
159-
158+
159+
if self.reference:
160+
pipeline_vars.append(f'--ref_name {self.reference}')
160161
if self.N_zero:
161162
pipeline_vars.append(f'--nzero {self.N_zero}')
162163
if self.bvalMap:
@@ -173,7 +174,7 @@ def main(self):
173174
pipeline_vars.append('--debug')
174175
if self.verbose:
175176
pipeline_vars.append('--verbose')
176-
177+
177178

178179
# the b-shell bvalues are sorted in descending order because we want to perform registration with highest bval
179180
ref_bvals= read_bvals(ref_bvals_file)[::-1]

0 commit comments

Comments
 (0)