code/vexptoolbox/experiment.py
def toDict(self):
        """ Return all trial information as a dict """
        d = {'index': self.index, 
             'block': self.block, 
             'status': self.status,
             'times': {'start_time': self._start_time,
                      'start_tick': self._start_tick,
                      'end_time': self._end_time,
                      'end_tick': self._end_tick},
             'params': self.params.toDict(),
             'results': self.results.toDict()}
        if 'samples' in self.__dict__.keys():
            d['samples'] = self.samples
        if 'events' in self.__dict__.keys():
            d['events'] = self.events
        return d
 Return all trial information as a dict 
Return all trial information as a dict
Return all trial information as a dict
def toDict(self):
        d = {'index': self.index, 
             'block': self.block, 
             'status': self.status,
             'times': {'start_time': self._start_time,
                      'start_tick': self._start_tick,
                      'end_time': self._end_time,
                      'end_tick': self._end_tick},
             'params': self.params.toDict(),
             'results': self.results.toDict()}
        if 'samples' in self.__dict__.keys():
            d['samples'] = self.samples
        if 'events' in self.__dict__.keys():
            d['events'] = self.events
        return d
def toDict ( self ) : d = { 'index' : self . index , 'block' : self . block , 'status' : self . status , 'times' : { 'start_time' : self . _start_time , 'start_tick' : self . _start_tick , 'end_time' : self . _end_time , 'end_tick' : self . _end_tick } , 'params' : self . params . toDict ( ) , 'results' : self . results . toDict ( ) } if 'samples' in self . __dict__ . keys ( ) : d [ 'samples' ] = self . samples if 'events' in self . __dict__ . keys ( ) : d [ 'events' ] = self . events return d
Return all trial information as a dict
Return all trial information as a dict
""" Return all trial information as a dict """
self