def _get_drop_indices(event_times, method):
 small_idx = np.argmin([e.shape[0] for e in event_times])
 small_e_times = event_times[small_idx]
 if (method not in ['mintime', 'truncate']):
  raise ValueError(('method must be either mintime or truncate, not %s' % method))
 indices = list()
 for e in event_times:
  if (method == 'mintime'):
   mask = _minimize_time_diff(small_e_times, e)
  else:
   mask = np.ones(e.shape[0], dtype=bool)
   mask[small_e_times.shape[0]:] = False
  indices.append(np.where(np.logical_not(mask))[0])
 return indices

def _get_drop_indices ( event_times , method ) : small_idx = np . argmin ( [ e . shape [ 0 ] for e in event_times ] ) small_e_times = event_times [ small_idx ] if ( method not in [ 'mintime' , 'truncate' ] ) : raise ValueError ( ( 'method must be either mintime or truncate, not %s' % method ) ) indices = list ( ) for e in event_times : if ( method == 'mintime' ) : mask = _minimize_time_diff ( small_e_times , e ) else : mask = np . ones ( e . shape [ 0 ] , dtype = bool ) mask [ small_e_times . shape [ 0 ] : ] = False indices . append ( np . where ( np . logical_not ( mask ) ) [ 0 ] ) return indices
get indices to drop from multiple event timing lists .