Skip to content

Commit f065d9c

Browse files
committed
fix: make sure event info is 2d
1 parent 7afedad commit f065d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/modelgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def gen_info(run_event_files):
149149
elif '.txt' in name:
150150
name, _ = name.split('.txt')
151151
runinfo.conditions.append(name)
152-
event_info = np.loadtxt(event_file)
152+
event_info = np.atleast_2d(np.loadtxt(event_file))
153153
runinfo.onsets.append(event_info[:, 0].tolist())
154154
if event_info.shape[1] > 1:
155155
runinfo.durations.append(event_info[:, 1].tolist())

0 commit comments

Comments
 (0)