Skip to content

Commit 1995aa3

Browse files
committed
Merge pull request #284 from matthew-brett/none-none-fix
RF: check separately for Nones to avoid warning Avoid future warning by checking for two Nones with separate if clauses.
2 parents 7e522a2 + d4ddf09 commit 1995aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/parrec2nii

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def proc_file(infile, opts):
208208
# write out bvals/bvecs if requested
209209
if opts.bvs:
210210
bvals, bvecs = pr_hdr.get_bvals_bvecs()
211-
if (bvals, bvecs) == (None, None):
211+
if bvals is None and bvecs is None:
212212
verbose('No DTI volumes detected, bvals and bvecs not written')
213213
else:
214214
verbose('Writing .bvals and .bvecs files')

0 commit comments

Comments
 (0)