Skip to content

Commit

Permalink
neuromodulator small change
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jul 24, 2023
1 parent bde0c43 commit 9c43696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions iblrig/transfer_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def copy_collections(self):
if status:
pending_file = self.glob_file_remote_copy_status('pending')
pending_file.rename(pending_file.with_suffix('.status_complete'))
if self.session_path.joinpath('transfer_me.flag').exists():
self.session_path.joinpath('transfer_me.flag').unlink()
return status

def initialize_experiment(self, acquisition_description=None, overwrite=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def next_trial(self):
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': # 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))
self.trials_table.at[self.trial_num, 'choice_delay'] = np.random.choice(np.linspace(0, 2.5, 3))

if self.task_params.VARIABLE_REWARDS:
# the reward is a draw within an uniform distribution between 3 and 1
Expand Down

0 comments on commit 9c43696

Please sign in to comment.