Example #1
0
 def create_trial(self):
     """Create trial structure
     """
     self.trial = [
         exp.Event(self,
                   dur=.200,
                   display=self.s['fix'],
                   func=self.idle_event),
         exp.Event(
             self,
             dur=.300,  # in seconds
             display=[self.s['fix'], self.s['stim1']],
             func=self.show_stim),
         exp.Event(self,
                   dur=.600,
                   display=self.s['fix'],
                   func=self.idle_event),
         exp.Event(
             self,
             dur=.300,  # in seconds
             display=[self.s['fix'], self.s['stim2']],
             func=self.show_stim),
         exp.Event(self,
                   dur=0,
                   display=self.s['fix'],
                   func=self.wait_until_response)
     ]
Example #2
0
 def create_trial(self):
     """Define trial composition
     """
     self.trial = [exp.Event(self,
                             dur=.200,  # in seconds
                             display=[self.s['stim'], self.s['fix']],
                             func=self.idle_event),
                   exp.Event(self,
                             dur=0,
                             display=self.s['fix'],
                             func=self.wait_until_response)
                  ]
Example #3
0
    def create_trial(self):
        """Create trial structure
        """
        allstim = [self.s['fix'], self.s['attended'], self.s['unattended']]

        self.trial = [
            exp.Event(
                self,
                dur=.200,  # in seconds
                display=allstim,
                func=self.show_stim),
            exp.Event(self,
                      dur=.200,
                      display=self.s['fix'],
                      func=self.idle_event)
        ]
 def create_trial(self):
     """Define trial composition
     """
     self.trial = [
         exp.Event(
             self,
             dur=self.timelimit,  # in seconds
             display=[self.s['bitmap1'], self.s['bitmap2']],
             func=self.show_stim)
     ]
Example #5
0
 def create_trial(self):
     """Create trial structure
     """
     self.trial = [
         exp.Event(
             self,
             dur=0.300,  # in seconds
             display=self.s['fix'],
             func=self.idle_event),
         exp.Event(
             self,
             dur=0,  # this means present until response
             display=None,  # we'll select which condition to
             # present during the runtime with
             # :func:`set_stimuli`
             func=self.show_stim),
         exp.Event(self,
                   dur=.300,
                   display=self.s['fix'],
                   func=self.feedback)
     ]
Example #6
0
 def create_trial(self):
     """Create trial structure
     """
     self.trial = [
         exp.Event(self,
                   dur=.200,
                   display=self.s['fix'],
                   func=self.idle_event),
         exp.Event(
             self,
             dur=.300,  # in seconds
             display=[self.s['fix'], self.s['stim1']],
             func=self.show_stim),
         exp.Event(self,
                   dur=.600,
                   display=self.s['fix'],
                   func=self.idle_event),
         exp.Event(
             self,
             dur=.300,  # in seconds
             display=[self.s['fix'], self.s['stim2']],
             func=self.show_stim),
         exp.Event(self,
                   dur=0,
                   display=self.s['fix'],
                   func=self.wait_until_response)
     ]
     if self.rp['practice']:
         self.trial.append(
             exp.Event(self,
                       dur=0.200,
                       display=self.s['fix'],
                       func=self.feedback))