Skip to content

Commit 0e0bc83

Browse files
authored
Merge pull request #733 from int-brain-lab/iblrigv8dev
8.24.6
2 parents 6491e9f + 761e827 commit 0e0bc83

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
8.24.6
5+
------
6+
* add property getters for feedback delays (for NM custom task)
7+
48
8.24.5
59
------
610
* fix: visual stimulus not showing for first trial

iblrig/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# 5) git tag the release in accordance to the version number below (after merge!)
77
# >>> git tag 8.15.6
88
# >>> git push origin --tags
9-
__version__ = '8.24.5'
9+
__version__ = '8.24.6'
1010

1111

1212
from iblrig.version_management import get_detailed_version_string

iblrig/base_choice_world.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def get_state_machine_trial(self, i):
410410
# No-go: hide the visual stimulus and play white noise. Go to exit_state after FEEDBACK_NOGO_DELAY_SECS.
411411
sma.add_state(
412412
state_name='no_go',
413-
state_timer=self.task_params.FEEDBACK_NOGO_DELAY_SECS,
413+
state_timer=self.feedback_nogo_delay,
414414
output_actions=[self.bpod.actions.bonsai_hide_stim, self.bpod.actions.play_noise],
415415
state_change_conditions={'Tup': 'exit_state'},
416416
)
@@ -425,7 +425,7 @@ def get_state_machine_trial(self, i):
425425
)
426426
sma.add_state(
427427
state_name='error',
428-
state_timer=self.task_params.FEEDBACK_ERROR_DELAY_SECS,
428+
state_timer=self.feedback_error_delay,
429429
output_actions=[self.bpod.actions.play_noise],
430430
state_change_conditions={'Tup': 'hide_stim'},
431431
)
@@ -446,7 +446,7 @@ def get_state_machine_trial(self, i):
446446
)
447447
sma.add_state(
448448
state_name='correct',
449-
state_timer=self.task_params.FEEDBACK_CORRECT_DELAY_SECS - self.reward_time,
449+
state_timer=self.feedback_correct_delay - self.reward_time,
450450
output_actions=[],
451451
state_change_conditions={'Tup': 'hide_stim'},
452452
)
@@ -609,6 +609,18 @@ def reward_time(self):
609609
def quiescent_period(self):
610610
return self.trials_table.at[self.trial_num, 'quiescent_period']
611611

612+
@property
613+
def feedback_correct_delay(self):
614+
return self.task_params['FEEDBACK_CORRECT_DELAY_SECS']
615+
616+
@property
617+
def feedback_error_delay(self):
618+
return self.task_params['FEEDBACK_ERROR_DELAY_SECS']
619+
620+
@property
621+
def feedback_nogo_delay(self):
622+
return self.task_params['FEEDBACK_NOGO_DELAY_SECS']
623+
612624
@property
613625
def position(self):
614626
return self.trials_table.at[self.trial_num, 'position']

0 commit comments

Comments
 (0)