code/vexptoolbox/experiment.py
def _updateBlocks(self):
        """ Rebuild experiment list of blocks and corresponding trials """
        self._blocks = []
        self._block_trials = {}

        if self.trials is not None and len(self.trials) > 0:
            for t in self.trials:
                if t.block not in self._blocks:
                    self._blocks.append(t.block)
                if t.block not in self._block_trials.keys():
                    self._block_trials[t.block] = []
                self._block_trials[t.block].append(t)
            self._blocks.sort()
 Rebuild experiment list of blocks and corresponding trials 
Rebuild experiment list of blocks and corresponding trials
Rebuild experiment list of blocks and corresponding trials
def _updateBlocks(self):
        self._blocks = []
        self._block_trials = {}
        if self.trials is not None and len(self.trials) > 0:
            for t in self.trials:
                if t.block not in self._blocks:
                    self._blocks.append(t.block)
                if t.block not in self._block_trials.keys():
                    self._block_trials[t.block] = []
                self._block_trials[t.block].append(t)
            self._blocks.sort()
def _updateBlocks ( self ) : self . _blocks = [ ] self . _block_trials = { } if self . trials is not None and len ( self . trials ) > 0 : for t in self . trials : if t . block not in self . _blocks : self . _blocks . append ( t . block ) if t . block not in self . _block_trials . keys ( ) : self . _block_trials [ t . block ] = [ ] self . _block_trials [ t . block ] . append ( t ) self . _blocks . sort ( )
Rebuild experiment list of blocks and corresponding trials
Rebuild experiment list of blocks and corresponding trials
""" Rebuild experiment list of blocks and corresponding trials """
self