def prepare_staircases(self): self.nr_staircases_ecc = 3 # Color, Speed, Fix, Fix_no_stim self.initial_values = [1,2.5,2,2] self.staircase_file_name = os.path.join(os.path.split(self.output_file)[0], self.subject_initials + '_prf_quest.pickle') if os.path.exists( self.staircase_file_name ): with open(self.staircase_file_name) as f: self.staircases = pickle.load(f) else: # create staircases self.staircases = {} for i, t in enumerate(self.tasks): if t != 'Fix_no_stim': for j in range(self.nr_staircases_ecc): self.staircases.update({t + '_%i'%j: Quest.QuestObject( tGuess = self.initial_values[i], tGuessSd = self.initial_values[i]*0.5, pThreshold = 0.83, beta = 3.5, delta = 0.05, gamma = 0.0, grain = 0.01, range = None ) }) else: self.staircases.update({t: Quest.QuestObject( tGuess = self.initial_values[i], tGuessSd = self.initial_values[i]*0.35, pThreshold = 0.83, beta = 3.5, delta = 0.05, gamma = 0.0, grain = 0.01, range = None ) })
def prepare(self): """Prepares the plug-in.""" self.experiment.quest = Quest.QuestObject(self.get(u't_guess'), self.get(u't_guess_sd'), self.get(u'p_threshold'), self.get(u'beta'), self.get(u'delta'), self.get(u'gamma')) self.experiment.quest_set_next_test_value = \ self.quest_set_next_test_value self.experiment.quest_set_next_test_value()
def prepare(self): """ desc: Prepares the plug-in. """ self.experiment.quest = Quest.QuestObject(self.var.t_guess, self.var.t_guess_sd, self.var.p_threshold, self.var.beta, self.var.delta, self.var.gamma) self.experiment.quest_set_next_test_value = \ self.quest_set_next_test_value self.experiment.quest_set_next_test_value()
def prepare_staircases(self): # staircases self.initial_value = 2 # for self.unique_tasks, self.staircase_file_name = os.path.join( os.path.split(self.output_file)[0], self.subject_initials + '_mapper_quest.pickle') if os.path.exists(self.staircase_file_name): with open(self.staircase_file_name) as f: self.staircases = pickle.load(f) else: # create staircases self.staircases = {} self.staircases.update({ 'fix': Quest.QuestObject(tGuess=self.initial_value, tGuessSd=self.initial_value * 0.35, pThreshold=0.83, beta=3.5, delta=0.01, gamma=0.0, grain=0.01, range=None) })