Esempio n. 1
0
    def startfiltfilt(self,widget):
        from meg import filtfilt
        srate = float(self.builder.get_object('entry24').get_text())
        order = int(self.builder.get_object('entry27').get_text())

        self.filter_results = filtfilt.calc(self.data_selected, srate, self.Wn, order, self.band)
        print 'filtererd with, srate, Wn, order, band:',srate, self.Wn, order, self.band
        self.callback(self.filter_results)
Esempio n. 2
0
    def startfiltfilt(self,widget):
        from meg import filtfilt

        print 'dt',self.treedata[self.selecteditem]#self.dataselected]
        data = self.treedata[self.selecteditem]#self.dataselected] #eval('self.datadict[self.fn].'+self.dataselected)
        #data = self.data_queue[self.selecteditem]
        srate = float(self.builder.get_object('entry24').get_text())
        
        #Wn = [float(self.builder.get_object('entry25').get_text()), float(self.builder.get_object('entry26').get_text())]
            
        order = int(self.builder.get_object('entry27').get_text())
        
         #self.builder.get_object("radiobutton1")
        #print self.treedata[self.dataselected], srate,Wn,order, band#, self.treedata
        #return
        self.datadict[self.fn].results.fil = filtfilt.calc(data, srate, self.Wn, order, self.band)
        self.refreshdatasummary()
        self.refreshresults()
        print shape(self.datadict[self.fn].results.fil)
        self.progresslabel = 'filter'; self.progressstat(None)
Esempio n. 3
0
 def filter(self, band=None, order=None, Wn=None):
     #Band = low, high, bp
     from meg import filtfilt
     self.filtereddata = filtfilt.calc(self.data.data_block, 1/self.data.hdr.header_data.sample_period , Wn, order, band)