Skip to content

Commit 613d8cb

Browse files
committed
Merge branch 'master' of https://github.com/fcp-indi/nipype
2 parents 89d7e9c + 00a470b commit 613d8cb

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,22 @@ def _create_ev_files(
250250
element=count,
251251
ctype=ctype, val=val)
252252
ev_txt += "\n"
253-
if con[0] in con_map.keys():
254-
for fconidx in con_map[con[0]]:
255-
ev_txt += contrast_ftest_element.substitute(
256-
cnum=ftest_idx.index(fconidx) + 1,
257-
element=tidx,
258-
ctype=ctype,
259-
val=1)
253+
# if con[0] in con_map.keys():
254+
# for fconidx in con_map[con[0]]:
255+
# ev_txt += contrast_ftest_element.substitute(
256+
# cnum=ftest_idx.index(fconidx) + 1,
257+
# element=tidx,
258+
# ctype=ctype,
259+
# val=1)
260+
for fconidx in ftest_idx:
261+
fval=0
262+
if con[0] in con_map.keys() and fconidx in con_map[con[0]]:
263+
fval=1
264+
ev_txt += contrast_ftest_element.substitute(
265+
cnum=ftest_idx.index(fconidx) + 1,
266+
element=tidx,
267+
ctype=ctype,
268+
val=fval)
260269
ev_txt += "\n"
261270

262271
# add contrast mask info

0 commit comments

Comments
 (0)