iblrig.choiceworld
Choice World Task related logic and functions that translate the task description in Appendix 2 of the paper into code.
Functions
If the mouse completed over 200 trials in the previous session, the reward volume is automatically lowered by 0.1 microliters for the next session, but cannot go lower than a floor of 1.5 microliters. If the mouse received less than its minimum required daily dose (~1 milliliter/25 grams of body weight) during the previous session, the reward volume is increased by 0.1 microliters for the next session, but cannot go above a ceiling of 3 microliters. :param subject_weight_g: in grams :param reward_volume_ul: the last reward volume setting in uL :param delivered_volume_ul: the cumulative water deliverd during the last session in uL :param n_trials: :return: adaptive_reward_ul. |
|
Goes through a subject's history and gets the latest training phase and adaptive reward volume. |
|