Loop over get_event files, instead of merging
@@ -158,10 +158,10 @@ def _load_time_variables(layout, dataset=None, columns=None, scan_length=None,
# Process event files
if events:
- _data = layout.get_events(img_f, return_type='df',
- derivatives=derivatives)
- if _data is not None:
-
+ dfs = layout.get_events(img_f, derivatives=derivatives)
+ if dfs is not None:
+ for _data in dfs:
+ _data = pd.read_table(_data, sep='\t')
if 'amplitude' in _data.columns:
if (_data['amplitude'].astype(int) == 1).all() and \
'trial_type' in _data.columns:
