def _combine_triggers(data, remapping=None):
 new_trigger = np.zeros(data.shape[1])
 if (data.astype(bool).sum(axis=0).max() > 1):
  logger.info('    Found multiple events at the same time sample. Cannot create trigger channel.')
  return
 if (remapping is None):
  remapping = (np.arange(data) + 1)
 for (d, event_id) in zip(data, remapping):
  idx = d.nonzero()
  if np.any(idx):
   new_trigger[idx] += event_id
 return new_trigger

def _combine_triggers ( data , remapping = None ) : new_trigger = np . zeros ( data . shape [ 1 ] ) if ( data . astype ( bool ) . sum ( axis = 0 ) . max ( ) > 1 ) : logger . info ( '    Found multiple events at the same time sample. Cannot create trigger channel.' ) return if ( remapping is None ) : remapping = ( np . arange ( data ) + 1 ) for ( d , event_id ) in zip ( data , remapping ) : idx = d . nonzero ( ) if np . any ( idx ) : new_trigger [ idx ] += event_id return new_trigger
combine binary triggers .