@verbose
def extract_label_time_course(stcs, labels, src, mode='mean_flip', allow_empty=False, return_generator=False, verbose=None):
 if isinstance(stcs, SourceEstimate):
  stcs = [stcs]
  return_several = False
  return_generator = False
 else:
  return_several = True
 if (not isinstance(labels, list)):
  labels = [labels]
 label_tc = _gen_extract_label_time_course(stcs, labels, src, mode=mode, allow_empty=allow_empty)
 if (not return_generator):
  label_tc = list(label_tc)
 if (not return_several):
  label_tc = label_tc[0]
 return label_tc

@ verbose def extract_label_time_course ( stcs , labels , src , mode = 'mean_flip' , allow_empty = False , return_generator = False , verbose = None ) : if isinstance ( stcs , SourceEstimate ) : stcs = [ stcs ] return_several = False return_generator = False else : return_several = True if ( not isinstance ( labels , list ) ) : labels = [ labels ] label_tc = _gen_extract_label_time_course ( stcs , labels , src , mode = mode , allow_empty = allow_empty ) if ( not return_generator ) : label_tc = list ( label_tc ) if ( not return_several ) : label_tc = label_tc [ 0 ] return label_tc
extract label time course for lists of labels and source estimates .