DataPipeline/Processing.py
def createConfig(self, conffile='functions.conf', **kwargs):
        """Create a separate config file to store"""

        c = ConfigParser.ConfigParser()        
        defaults = {'smooth': [('window', 'hanning'),('windowlen', 11)],
                    'gaussiansmooth':[('degree',6)],
                    'baselinecorrection':[('segmentsize',0.3)],
                    'detectpeaks':[('lookahead',5),('delta',20)],
                    'savitzkygolayfilter':[('windowsize',11), ('order',3), ('deriv',0)],
                    'normalise':[('value',1)],
                    'removeoutliers':[('percentile',0.95)],
                    'omitrange':[('xmin',''),('xmax',''),('ymin',''),('ymax','')]}
        cp = Utilities.createConfigParserfromDict(defaults, self.predefined ,**kwargs)
        cp.write(open(conffile,'w'))
        print conffile
        return
Create a separate config file to store
Create a separate config file to store
Create a separate config file to store
def createConfig(self, conffile='functions.conf', **kwargs):
        c = ConfigParser.ConfigParser()        
        defaults = {'smooth': [('window', 'hanning'),('windowlen', 11)],
                    'gaussiansmooth':[('degree',6)],
                    'baselinecorrection':[('segmentsize',0.3)],
                    'detectpeaks':[('lookahead',5),('delta',20)],
                    'savitzkygolayfilter':[('windowsize',11), ('order',3), ('deriv',0)],
                    'normalise':[('value',1)],
                    'removeoutliers':[('percentile',0.95)],
                    'omitrange':[('xmin',''),('xmax',''),('ymin',''),('ymax','')]}
        cp = Utilities.createConfigParserfromDict(defaults, self.predefined ,**kwargs)
        cp.write(open(conffile,'w'))
        print conffile
        return
def createConfig ( self , conffile = 'functions.conf' , ** kwargs ) : c = ConfigParser . ConfigParser ( ) defaults = { 'smooth' : [ ( 'window' , 'hanning' ) , ( 'windowlen' , 11 ) ] , 'gaussiansmooth' : [ ( 'degree' , 6 ) ] , 'baselinecorrection' : [ ( 'segmentsize' , 0.3 ) ] , 'detectpeaks' : [ ( 'lookahead' , 5 ) , ( 'delta' , 20 ) ] , 'savitzkygolayfilter' : [ ( 'windowsize' , 11 ) , ( 'order' , 3 ) , ( 'deriv' , 0 ) ] , 'normalise' : [ ( 'value' , 1 ) ] , 'removeoutliers' : [ ( 'percentile' , 0.95 ) ] , 'omitrange' : [ ( 'xmin' , '' ) , ( 'xmax' , '' ) , ( 'ymin' , '' ) , ( 'ymax' , '' ) ] } cp = Utilities . createConfigParserfromDict ( defaults , self . predefined , ** kwargs ) cp . write ( open ( conffile , 'w' ) ) print conffile return
Create a separate config file to store
Create a separate config file to store
"""Create a separate config file to store"""
self
conffile