code/vexptoolbox/experiment.py
def toDict(self):
        """ Return all experiment data and results as dict """
        e = {'name': self.name,
             'config': self.config.toDict(),
             'participant': self.participant.toDict()}

        for trial in self.trials:
            if 'trials' not in e.keys():
                e['trials'] = []
            e['trials'].append(trial.toDict())

        if self._recorder is not None:
            if len(self.recorder._validation_results) > 0:
                e['eye_tracker_validations'] = [v.toDict() for v in self.recorder._validation_results]
        return e
 Return all experiment data and results as dict 
Return all experiment data and results as dict
Return all experiment data and results as dict
def toDict(self):
        e = {'name': self.name,
             'config': self.config.toDict(),
             'participant': self.participant.toDict()}
        for trial in self.trials:
            if 'trials' not in e.keys():
                e['trials'] = []
            e['trials'].append(trial.toDict())
        if self._recorder is not None:
            if len(self.recorder._validation_results) > 0:
                e['eye_tracker_validations'] = [v.toDict() for v in self.recorder._validation_results]
        return e
def toDict ( self ) : e = { 'name' : self . name , 'config' : self . config . toDict ( ) , 'participant' : self . participant . toDict ( ) } for trial in self . trials : if 'trials' not in e . keys ( ) : e [ 'trials' ] = [ ] e [ 'trials' ] . append ( trial . toDict ( ) ) if self . _recorder is not None : if len ( self . recorder . _validation_results ) > 0 : e [ 'eye_tracker_validations' ] = [ v . toDict ( ) for v in self . recorder . _validation_results ] return e
Return all experiment data and results as dict
Return all experiment data and results as dict
""" Return all experiment data and results as dict """
self