Closed XX-Yin closed 1 week ago
@alexpiet @hanhou This is ready for review.
This is great! I have two questions:
align_to_go_cue
to True
by default?rewardDelay
work for AutoWater
and ManualWater
? It seems not from the bonsai diagram.This is great! I have two questions:
- Can you set the
align_to_go_cue
toTrue
by default?- Does
rewardDelay
work forAutoWater
andManualWater
? It seems not from the bonsai diagram.
align_to_go_cue
to True
by default. RewardDelay
is only for EarnedReward
(the animal responds to the baited side), not for AutoWater
and ManualWater
. AutoWater
and ManualWater
will be given immediately after the GoCue
. AutoWater
and ManualWater
are mainly designed to increase the motivation, and we should turn it off as early as possible to avoid the animal developing additional strategies. I think it should be ok to give them after the go cue. No, the RewardDelay is only for EarnedReward (the animal responds to the baited side), not for AutoWater and ManualWater.
If @ZhixiaoSu doesn't think this will confuse the mice that are on RewardDelay, let's leave it as it is then.
Another question: will the user know what the current give_xx_volume_reserved
is in the GUI?
Another question: will the user know what the current
give_xx_volume_reserved
is in the GUI?
The user can visualize if there is manual water next trial when the GUI is updated. The volume is not explicitly visualized (depending how many times the user has clicked), but it will be added to the total water.
The volume is not explicitly visualized
This is what I was wondering. I think it would be great if the user can get an immediate visual feedback when they click the manual water button. For example, show give_xx_volume_reserved
in the GUI whenever it is updated.
The volume is not explicitly visualized
This is what I was wondering. I think it would be great if the user can get an immediate visual feedback when they click the manual water button. For example, show
give_xx_volume_reserved
in the GUI whenever it is updated.
That makes sense. I can update it.
A final question: will EarnedWater
, ManualWater
and AutoWater
ever occur in the same trial? If so, do the mice get the sum of them? If not, what is the priority among the three?
A final question: will
EarnedWater
,ManualWater
andAutoWater
ever occur in the same trial? If so, do the mice get the sum of them? If not, what is the priority among the three?
Great question.
EarnedWater
and ManualWater
can occur in the same trial. The order is ManualWater
and then the EarnedWater
. EarnedWater
and AutoWater
can occur in the same trial. The order is AutoWater
and then the EarnedWater
. AutoWater
and EarnedWater
don't occur in the same trial. If this is an AutoWater
trial, then no EarnedWater
will be available. A final question: will
EarnedWater
,ManualWater
andAutoWater
ever occur in the same trial? If so, do the mice get the sum of them? If not, what is the priority among the three?Great question.
EarnedWater
andManualWater
can occur in the same trial. The order isManualWater
and then theEarnedWater
.ManualWater
andAutoWater
can occur in the same trial. The order isAutoWater
and then theManualWater
.AutoWater
andEarnedWater
don't occur in the same trial. If this is anAutoWater
trial, then noEarnedWater
will be available.
Your points 2 and 3 contradict each other. I guess EarnedWater should be ManualWater in point 2? Can you point me to the code that controls the interactions?
A final question: will
EarnedWater
,ManualWater
andAutoWater
ever occur in the same trial? If so, do the mice get the sum of them? If not, what is the priority among the three?Great question.
EarnedWater
andManualWater
can occur in the same trial. The order isManualWater
and then theEarnedWater
.EarnedWater
andAutoWater
can occur in the same trial. The order isAutoWater
and then theEarnedWater
.AutoWater
andEarnedWater
don't occur in the same trial. If this is anAutoWater
trial, then noEarnedWater
will be available.Your points 2 and 3 contradict each other. I guess EarnedWater should be ManualWater in point 2? Can you point me to the code that controls the interactions?
You are right. Sorry. I updated it.
To give AutoWater
To give reserved ManulWater
The timing of earned water is determined in bonsai.
Make the earned water unavailable when it's an AutoWater
trial (see here).
The volume is not explicitly visualized
This is what I was wondering. I think it would be great if the user can get an immediate visual feedback when they click the manual water button. For example, show
give_xx_volume_reserved
in the GUI whenever it is updated.
@hanhou I updated the code to show manual water.
No, the RewardDelay is only for EarnedReward (the animal responds to the baited side), not for AutoWater and ManualWater.
If @ZhixiaoSu doesn't think this will confuse the mice that are on RewardDelay, let's leave it as it is then.
Hi Sue @ZhixiaoSu, the manual water (align to the go cue) and auto water will be given after the go cue without delay. Is it a concern for your mice trained with a delayed reward after response? I think it may be ok as the main purpose of manual water and auto water is to increase the motivation and they will be closed as soon as possible.
No, the RewardDelay is only for EarnedReward (the animal responds to the baited side), not for AutoWater and ManualWater.
If @ZhixiaoSu doesn't think this will confuse the mice that are on RewardDelay, let's leave it as it is then.
Hi Sue @ZhixiaoSu, the manual water (align to the go cue) and auto water will be given after the go cue without delay. Is it a concern for your mice trained with a delayed reward after response? I think it may be ok as the main purpose of manual water and auto water is to increase the motivation and they will be closed as soon as possible.
I agree! I think it's a good idea to have the water come out earlier to help them build the association.
Pull Request instructions:
Describe changes:
Added option ‘align to go cue’, if ‘yes’ is selected, manual water will be given after go cue. The volume of manual water is increased with clicks. Ephys GUI:
Behavior GUI:
![image](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/109394934/49cfb0be-110a-425b-8215-2962182b9d21)
Added visualization of manual water.![image](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/109394934/449d64ad-c9aa-4eca-84d5-b2d78d3cf5e5)
Bonsai was updated to send timestamps related to
auto water
,manual water
andearned water
to the GUI.The added bonsai field is circled.
![image](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/109394934/1879c1a0-e1fe-4b36-ad7d-9bdba6b52544)
What issues or discussions does this update address?
https://github.com/AllenNeuralDynamics/aind-behavior-blog/issues/420#issuecomment-2177235590 https://github.com/AllenNeuralDynamics/dynamic-foraging-task/issues/new
Describe the expected change in behavior from the perspective of the experimenter
No
Describe any manual update steps for task computers
No
Was this update tested in 446/447?