We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b9e5bf + 4a9205d commit 5126cc3Copy full SHA for 5126cc3
nipype/interfaces/fsl/model.py
@@ -252,13 +252,16 @@ def _create_ev_files(
252
element=count,
253
ctype=ctype, val=val)
254
ev_txt += "\n"
255
- if con[0] in list(con_map.keys()):
256
- for fconidx in con_map[con[0]]:
257
- ev_txt += contrast_ftest_element.substitute(
258
- cnum=ftest_idx.index(fconidx) + 1,
259
- element=tidx,
260
- ctype=ctype,
261
- val=1)
+
+ for fconidx in ftest_idx:
+ fval=0
+ if con[0] in con_map.keys() and fconidx in con_map[con[0]]:
+ fval=1
+ ev_txt += contrast_ftest_element.substitute(
+ cnum=ftest_idx.index(fconidx) + 1,
262
+ element=tidx,
263
+ ctype=ctype,
264
+ val=fval)
265
266
267
# add contrast mask info
0 commit comments