Beispiel #1
0
 def get_bipolar(self, **kwargs):
     bipolar_labels, bipolar_inds = monopolar_to_bipolar(self.space_labels)
     data = self.data[:, :, bipolar_inds[0]] - self.data[:, :,
                                                         bipolar_inds[1]]
     bipolar_labels_dimensions = deepcopy(self.labels_dimensions)
     bipolar_labels_dimensions[self.labels_ordering[2]] = list(
         bipolar_labels)
     return self.duplicate(data=data,
                           labels_dimensions=bipolar_labels_dimensions,
                           **kwargs)
Beispiel #2
0
 def get_bipolar_sensors(self, sensors_inds=None):
     if sensors_inds is None:
         sensors_inds = range(self.number_of_sensors)
     return monopolar_to_bipolar(self.labels, sensors_inds)