Skip to content

Commit c9c613e

Browse files
authored
Merge pull request #45 from int-brain-lab/feat/reward_amount_nate
added `--reward_amount_ul` parameter for `nate_optoBiasedChoiceWorld`
2 parents 7bfa0f1 + c91a224 commit c9c613e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

iblrig_custom_tasks/nate_optoBiasedChoiceWorld/task.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def __init__(
8585
mask_ttl_states: list[str] = DEFAULTS['MASK_TTL_STATES'],
8686
use_zapit: bool = DEFAULTS['USE_ZAPIT'],
8787
stim_reverse: float = DEFAULTS['STIM_REVERSE'],
88+
reward_amount_ul: float = DEFAULTS['REWARD_AMOUNT_UL'],
8889
**kwargs,
8990
):
9091
super().__init__(*args, **kwargs)
@@ -94,6 +95,7 @@ def __init__(
9495
self.task_params['MASK_TTL_STATES'] = mask_ttl_states
9596
self.task_params['PROBABILITY_OPTO_STIM'] = probability_opto_stim
9697
self.task_params['STIM_REVERSE'] = stim_reverse
98+
self.task_params['REWARD_AMOUNT_UL'] = reward_amount_ul
9799
self.task_params['USE_ZAPIT'] = use_zapit
98100
self.current_location_idx = None
99101
self.num_cond = None
@@ -169,6 +171,14 @@ def extra_parser():
169171
type=float,
170172
help=f'probability of opto-genetic stimulation (default: {DEFAULTS["PROBABILITY_OPTO_STIM"]})',
171173
)
174+
parser.add_argument(
175+
'--reward_amount_ul',
176+
option_strings=['--reward_amount_ul'],
177+
dest='reward_amount_ul',
178+
default=DEFAULTS['REWARD_AMOUNT_UL'],
179+
type=float,
180+
help=f'reward amount, ul (default: {DEFAULTS["REWARD_AMOUNT_UL"]})',
181+
)
172182
parser.add_argument(
173183
'--contrast_set_probability_type',
174184
option_strings=['--contrast_set_probability_type'],

iblrig_custom_tasks/nate_optoBiasedChoiceWorld/task_parameters.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
- reward
2323
'PROBABILITY_OPTO_STIM': 0.2 # probability of optogenetic stimulation
2424
'STIM_REVERSE': False
25-
'USE_ZAPIT': False
25+
'USE_ZAPIT': False
26+
'REWARD_AMOUNT_UL': 1.5

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "project_extraction"
7-
version = "0.8.4"
7+
version = "0.8.5"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]

0 commit comments

Comments
 (0)