Set reward-size on each trial#131
Conversation
|
@arjunsridhar12345 breaking change here. Reward size changes from task_logic.reward_size.right_valve_volume to trial_outcome.trial.reward_size.right |
|
@bruno-f-cruz I moved the calculating reward size to quiescent period. Moving to iti required setting it at the beginning of the session as well so made more sense to me to move into quiescent |
This reverts commit e98dbb5.
|
@bruno-f-cruz Task engine now includes pre trial select many which sets reward size for each trial
|
There was a problem hiding this comment.
The distinctUntilChanged being inside the SelectMany doesnt really do anything since the sequence only fires once. The solution is to move it to the subject subscriber, ensuring you add it after filtering by side so you dont get false positives at the operator's input.
|
I pushed a small change to fix the The solution for both is to add the
|


Move reward size form task logic level to trial level. Allows to give fraction of reward for auto reward. Closes #85
At bonsai level, default reward is set to 2ul at initialization and during session, reward size is updated in calculate reward block