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.
1 parent 7afedad commit f065d9cCopy full SHA for f065d9c
nipype/algorithms/modelgen.py
@@ -149,7 +149,7 @@ def gen_info(run_event_files):
149
elif '.txt' in name:
150
name, _ = name.split('.txt')
151
runinfo.conditions.append(name)
152
- event_info = np.loadtxt(event_file)
+ event_info = np.atleast_2d(np.loadtxt(event_file))
153
runinfo.onsets.append(event_info[:, 0].tolist())
154
if event_info.shape[1] > 1:
155
runinfo.durations.append(event_info[:, 1].tolist())
0 commit comments