Subversion Repositories Projects

Rev

Rev 613 | Rev 615 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 613 Rev 614
Line 476... Line 476...
476
            if len(s) != 2: raise Exception("Invalid format")
476
            if len(s) != 2: raise Exception("Invalid format")
477
            s[1] = s[1].split(":")
477
            s[1] = s[1].split(":")
478
            if len(s[1]) != 2: raise Exception("Invalid format")
478
            if len(s[1]) != 2: raise Exception("Invalid format")
479
            mp.speeds = range(int(s[0]),int(s[1][0])+int(s[1][1]),int(s[1][1]))
479
            mp.speeds = range(int(s[0]),int(s[1][0])+int(s[1][1]),int(s[1][1]))
480
        else:
480
        else:
481
            mp.speeds = s.split(',')
481
            mp.speeds = map(int,s.split(','))
-
 
482
           
Line 482... Line 483...
482
       
483
       
483
        # create the dialog that will show the satus
484
        # create the dialog that will show the satus
484
        dlg = MeasureDialog(self)
485
        dlg = MeasureDialog(self)
Line 633... Line 634...
633
            self.filteredData = _Numeric.fft.irfft(tmpfft)
634
            self.filteredData = _Numeric.fft.irfft(tmpfft)
634
        return self.filteredData
635
        return self.filteredData
Line 635... Line 636...
635
       
636
       
636
    def getVibValue(self):
637
    def getVibValue(self):
637
      if self.vibValue == None:
638
      if self.vibValue == None:
638
        fd = self.getFilteredData();
639
        fd = self.getFilteredData()[100:-100];
639
        self.vibValue = max(fd)-min(fd)
640
        self.vibValue = max(fd)-min(fd)