Example #1
0
 def get_sensors_inds_by_sensors_labels(self, lbls):
     # Make sure that the labels are not bipolar:
     lbls = [label.split("-")[0] for label in ensure_list(lbls)]
     return labels_to_inds(self._tvb.labels, lbls)
Example #2
0
 def labels2inds(all_labels, labels):
     return labels_to_inds(all_labels, labels)
Example #3
0
 def get_elecs_inds_by_elecs_labels(self, lbls):
     if self.elec_labels is not None:
         return labels_to_inds(self.elec_labels, lbls)
     else:
         return None