You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging.error('Early re-referencing is set to CAR per headbox, but the _channels.tsv file does not have a \'headbox\' column, exiting...')
200
+
raiseRuntimeError('No \'headbox\' column in _channels.tsv file, needed to perform early re-referencing per headbox')
201
+
202
+
iflen(channels_early_reref_incl_names) ==0:
203
+
logging.info(multi_line_list(channels_early_reref_incl_names, LOGGING_CAPTION_INDENT_LENGTH, 'Channels included (by type) for early re-ref:', 25, ' '))
171
204
logging.info(multi_line_list(channels_early_reref_excl_by_type, LOGGING_CAPTION_INDENT_LENGTH, 'Channels excluded by type for early re-ref:', 25, ' '))
172
205
logging.error('Early re-referencing is enabled but (after filtering by type) no channels were found, exiting...')
173
206
raiseRuntimeError('No channels were found for early re-referencing')
logging.info(multi_line_list(group, LOGGING_CAPTION_INDENT_LENGTH, ' CAR group '+str(ind) +':', 25, ' '))
219
+
220
+
# check to make sure all included channels are also included in early re-referencing
221
+
missing_channels= []
222
+
forchannelinchannels_measured_incl:
223
+
ifchannelnotinearly_reref.channel_group.keys():
224
+
missing_channels.append(channel)
225
+
iflen(missing_channels) ==1:
226
+
logging.error('Channel \''+missing_channels[0] +'\' is included but cannot be found in any early re-referencing group, make sure the channel has a valid headbox value in the _channels.tsv')
227
+
raiseRuntimeError('Included channel not in re-referencing group')
228
+
eliflen(missing_channels) >1:
229
+
logging.error('Channels \''+', '.join(missing_channels) +'\' are included but cannot be found in any early re-referencing group, make sure the channels have valid headbox values in the _channels.tsv')
230
+
raiseRuntimeError('Included channel not in re-referencing group')
231
+
232
+
233
+
# check late re-referencing settings and prepare reref struct
logging.info(multi_line_list(group, LOGGING_CAPTION_INDENT_LENGTH, ' CAR group '+str(ind) +':', 25, ' '))
258
+
259
+
# check to make sure all included channels are also included in late re-referencing
260
+
missing_channels= []
261
+
forchannelinchannels_measured_incl:
262
+
ifchannelnotinlate_reref.channel_group.keys():
263
+
missing_channels.append(channel)
264
+
iflen(missing_channels) ==1:
265
+
logging.error('Channel \''+missing_channels[0] +'\' is included but cannot be found in any late re-referencing group, make sure the channel has a valid headbox value in the _channels.tsv')
266
+
raiseRuntimeError('Included channel not in re-referencing group')
267
+
eliflen(missing_channels) >1:
268
+
logging.error('Channels \''+', '.join(missing_channels) +'\' are included but cannot be found in any late re-referencing group, make sure the channels have valid headbox values in the _channels.tsv')
269
+
raiseRuntimeError('Included channel not in re-referencing group')
config['preprocess']['early_re_referencing']['types'] = ('ECOG', 'SEEG', 'DBS') # the type of channels that will be included for early re-referencing
48
+
config['preprocess']['early_re_referencing']['channel_types'] = ('ECOG', 'SEEG', 'DBS') # the type of channels that will be included for early re-referencing
config['preprocess']['late_re_referencing']['channel_types'] = ('ECOG', 'SEEG', 'DBS') # the type of channels that will be included for late re-referencing
50
55
51
56
config['trials'] =dict()
52
57
config['trials']['trial_epoch'] = (-1.0, 2.0) # the time-span (in seconds) relative to the stimulus onset that will be used to extract the signal for each trial
0 commit comments