Exemple #1
0
    def updateLivePlot(self):
        y = self.input['y']
        seconds_range = self.data.sources[
            self.data.source_selection].secondsRange()

        # threshold visualization
        self.liveplot.setData('minimal amplitude', seconds_range, self.th)

        # plotting the signal
        self.liveplot.setData('y', seconds_range, y)

        # plotting the train
        if self.output['train'] is not None and len(self.output['train']) > 0:
            diff = max(y) - min(y)
            train_height = diff / 6
            self.liveplot.setData('train', seconds_range,
                                  train_height * self.output['train'])
        else:
            # can not call self.undisplayPlots because that would undisplay other data too, like y and thresholds
            # this is why we undisplay the train manually
            self.liveplot.setData('train', [], [])
            # and then Feature.undisplayPlots method which cares about the compare plots
            Feature.undisplayPlots(self)

        if self.output['time'] is not None and self.output[
                'amplitude'] is not None:
            self.liveplot.setData(
                'train symbols',
                [seconds_range[t]
                 for t in self.output['time']], self.output['amplitude'])
        else:
            self.liveplot.setData('train symbols', [], [])
Exemple #2
0
 def undisplayPlots(self):
     Feature.undisplayPlots(self)
     self.liveplot.setData('minimal amplitude', [], [])
     self.liveplot.setData('minimal base', [], [])
     self.liveplot.setData('y', [], [])
     self.liveplot.setData('train', [], [])
     self.liveplot.setData('train start symbols', [], [])
     self.liveplot.setData('train end symbols', [], [])
Exemple #3
0
    def undisplayPlots(self):
        Feature.undisplayPlots(self)

        # hide the self rois
        for roi_name in ['roi', 'rect_roi']:
            roi_view = self.getMethod().getParametersGUI(roi_name)
            if roi_view is not None:
                roi_view.hide()
Exemple #4
0
 def undisplayPlots(self):
     Feature.undisplayPlots(self)
     if self.input[self.input_data_name] is not None:
         names = [data['name'] for data in self.input[self.input_data_name]]
         n = len(names)
         for i in range(n - 1):
             for j in range(i + 1, n):
                 self.liveplot.setData(
                     'CC {} -- {}'.format(names[i], names[j]), [], [])
Exemple #5
0
 def undisplayPlots(self):
     Feature.undisplayPlots(self)
     self.liveplot.clear()
     self.clearMarkers()
Exemple #6
0
 def undisplayPlots(self):
     Feature.undisplayPlots(self)
     self.liveplot.setData('PSD', [], [])
Exemple #7
0
 def undisplayPlots(self):
     Feature.undisplayPlots(self)
     self.liveplot.setData('shape', [], [])
     self.liveplot.setData('smoothed shape', [], [])