DataPipeline/Base.py
def doProcessingStep(self, data, fname):
        """Apply a pre-defined processing step to the data"""

        X = Processor(self.functionsconf)
        names = [i[1] for i in self.functions]
        for n in names:
            if n not in X.predefined:
                print 'function %s not found' %n
                return data
        #user may want to see raw data before processing, so we plot here
        if self.saveplots == 1:
            Er = Utilities.getEkinProject(data)
        data = X.doFunctions(names, data)
        if self.saveplots == 1:
            Em = Utilities.getEkinProject(data)
            Er.addProject(Em,label='proc')
            Er.saveProject(fname+'_processed')
            self.saveEkinPlotstoImages(Er, fname+'_processed',groupbylabel=True)
        return data
Apply a pre-defined processing step to the data
Apply a pre-defined processing step to the data
Apply a pre - defined processing step to the data
def doProcessingStep(self, data, fname):
        X = Processor(self.functionsconf)
        names = [i[1] for i in self.functions]
        for n in names:
            if n not in X.predefined:
                print 'function %s not found' %n
                return data
        if self.saveplots == 1:
            Er = Utilities.getEkinProject(data)
        data = X.doFunctions(names, data)
        if self.saveplots == 1:
            Em = Utilities.getEkinProject(data)
            Er.addProject(Em,label='proc')
            Er.saveProject(fname+'_processed')
            self.saveEkinPlotstoImages(Er, fname+'_processed',groupbylabel=True)
        return data
def doProcessingStep ( self , data , fname ) : X = Processor ( self . functionsconf ) names = [ i [ 1 ] for i in self . functions ] for n in names : if n not in X . predefined : print 'function %s not found' % n return data if self . saveplots == 1 : Er = Utilities . getEkinProject ( data ) data = X . doFunctions ( names , data ) if self . saveplots == 1 : Em = Utilities . getEkinProject ( data ) Er . addProject ( Em , label = 'proc' ) Er . saveProject ( fname + '_processed' ) self . saveEkinPlotstoImages ( Er , fname + '_processed' , groupbylabel = True ) return data
Apply a pre-defined processing step to the data
Apply a pre - defined processing step to the data
"""Apply a pre-defined processing step to the data""" #user may want to see raw data before processing, so we plot here
self
data
fname