code/vexptoolbox/data.py
def _setResults(self, result):
        """ Update aggregate result variables based on a dictionary """
        self._results = {}
        vars = ['acc', 'accX', 'accY', 'sd', 'sdX', 'sdY',  'rmsi', 'rmsiX', 'rmsiY', 'ipd', 
                'acc_L', 'accX_L', 'accY_L', 'sd_L', 'sdX_L', 'sdY_L',  'rmsi_L', 'rmsiX_L', 'rmsiY_L',
                'acc_R', 'accX_R', 'accY_R', 'sd_R', 'sdX_R', 'sdY_R',  'rmsi_R', 'rmsiX_R', 'rmsiY_R',
                'start_sample', 'end_sample']

        for v in vars:
            setattr(self, v, MISSING_VALUE)
            self._results[v] = MISSING_VALUE
            if result is not None and v in result.keys():
                setattr(self, v, result[v])
                self._results[v] = result[v]
 Update aggregate result variables based on a dictionary 
Update aggregate result variables based on a dictionary
Update aggregate result variables based on a dictionary
def _setResults(self, result):
        self._results = {}
        vars = ['acc', 'accX', 'accY', 'sd', 'sdX', 'sdY',  'rmsi', 'rmsiX', 'rmsiY', 'ipd', 
                'acc_L', 'accX_L', 'accY_L', 'sd_L', 'sdX_L', 'sdY_L',  'rmsi_L', 'rmsiX_L', 'rmsiY_L',
                'acc_R', 'accX_R', 'accY_R', 'sd_R', 'sdX_R', 'sdY_R',  'rmsi_R', 'rmsiX_R', 'rmsiY_R',
                'start_sample', 'end_sample']
        for v in vars:
            setattr(self, v, MISSING_VALUE)
            self._results[v] = MISSING_VALUE
            if result is not None and v in result.keys():
                setattr(self, v, result[v])
                self._results[v] = result[v]
def _setResults ( self , result ) : self . _results = { } vars = [ 'acc' , 'accX' , 'accY' , 'sd' , 'sdX' , 'sdY' , 'rmsi' , 'rmsiX' , 'rmsiY' , 'ipd' , 'acc_L' , 'accX_L' , 'accY_L' , 'sd_L' , 'sdX_L' , 'sdY_L' , 'rmsi_L' , 'rmsiX_L' , 'rmsiY_L' , 'acc_R' , 'accX_R' , 'accY_R' , 'sd_R' , 'sdX_R' , 'sdY_R' , 'rmsi_R' , 'rmsiX_R' , 'rmsiY_R' , 'start_sample' , 'end_sample' ] for v in vars : setattr ( self , v , MISSING_VALUE ) self . _results [ v ] = MISSING_VALUE if result is not None and v in result . keys ( ) : setattr ( self , v , result [ v ] ) self . _results [ v ] = result [ v ]
Update aggregate result variables based on a dictionary
Update aggregate result variables based on a dictionary
""" Update aggregate result variables based on a dictionary """
self
result