code/vexptoolbox/experiment.py
def startNextTrial(self, print_summary=True):
        """ Start the next trial in the trial list, if any 
        
        Args:
            print_summary (bool): if True, print out trial status and parameters
        """
        if self._trial_running:
            raise RuntimeError('Cannot start a trial while another trial is in progress!')

        if self._cur_trial == 0 and not self.trials[self._cur_trial].done:
            trial_idx = 0   # first trial

        elif self._cur_trial + 1 >= len(self.trials):
            self._state == STATE_DONE
            raise RuntimeError('No further trials remaining in trial list.')

        else:
            trial_idx = self._cur_trial + 1

        self.startTrial(trial_idx=trial_idx, print_summary=print_summary)
 Start the next trial in the trial list, if any 
        
        Args:
            print_summary (bool): if True, print out trial status and parameters
        
Start the next trial in the trial list, if any
Start the next trial in the trial list if any
def startNextTrial(self, print_summary=True):
        if self._trial_running:
            raise RuntimeError('Cannot start a trial while another trial is in progress!')
        if self._cur_trial == 0 and not self.trials[self._cur_trial].done:
            trial_idx = 0   
        elif self._cur_trial + 1 >= len(self.trials):
            self._state == STATE_DONE
            raise RuntimeError('No further trials remaining in trial list.')
        else:
            trial_idx = self._cur_trial + 1
        self.startTrial(trial_idx=trial_idx, print_summary=print_summary)
def startNextTrial ( self , print_summary = True ) : if self . _trial_running : raise RuntimeError ( 'Cannot start a trial while another trial is in progress!' ) if self . _cur_trial == 0 and not self . trials [ self . _cur_trial ] . done : trial_idx = 0 elif self . _cur_trial + 1 >= len ( self . trials ) : self . _state == STATE_DONE raise RuntimeError ( 'No further trials remaining in trial list.' ) else : trial_idx = self . _cur_trial + 1 self . startTrial ( trial_idx = trial_idx , print_summary = print_summary )
Start the next trial in the trial list, if any
Start the next trial in the trial list if any
""" Start the next trial in the trial list, if any 
        
        Args:
            print_summary (bool): if True, print out trial status and parameters
        """ # first trial
self
print_summary
if True, print out trial status and parameters
if True print out trial status and parameters