Skip to content

Commit

Permalink
neuromodulator choice world
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jul 7, 2023
1 parent dc23cc0 commit 0ca941d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions iblrig_tasks/_iblrig_tasks_neuroModulatorChoiceWorld/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def next_trial(self):
self.trials_table.at[self.trial_num, 'choice_delay'] = np.random.choice([1.5, 3.0], p=[2 / 3, 1 / 3])
elif choice_delay_strategy == 'uniform': # uniform probability draw between 1.5s and 3s
self.trials_table.at[self.trial_num, 'choice_delay'] = np.random.random() * 1.5 + 1.5
elif choice_delay_strategy == 'binned': # 10 bins of 150ms between 1.5 and 3 secs. The "Charline Way"
self.trials_table.at[self.trial_num, 'choice_delay'] = np.random.choice(np.linspace(1.5, 3, 11))
elif choice_delay_strategy == 'binned': # 5 valures from 0 to 2.5 secs The "Charline Way"
self.trials_table.at[self.trial_num, 'choice_delay'] = np.random.choice(np.linspace(0, 2.5, 5))

if self.task_params.VARIABLE_REWARDS:
# the reward is a draw within an uniform distribution between 3 and 1
reward_amount = 1.5 if self.block_num == 0 else np.random.choice(REWARD_AMOUNTS_UL, p=[.6, .4])
reward_amount = 1.5 if self.block_num == 0 else np.random.choice(REWARD_AMOUNTS_UL, p=[.8, .2])
self.trials_table.at[self.trial_num, 'reward_amount'] = reward_amount

@property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
'OMIT_FEEDBACK_PROBABILITY': 0.1
'OMIT_FEEDBACK_PROBABILITY': 0.05
'VARIABLE_REWARDS': true

0 comments on commit 0ca941d

Please sign in to comment.