iblrig.base_tasks.ValveMixin

Inheritance diagram of ValveMixin

class iblrig.base_tasks.ValveMixin[source]
compute_reward_time(amount_ul=None)[source]

Converts the valve opening time from a given volume.

Parameters:

amount_ul (float, optional) – The volume of liquid (μl) to be dispensed from the valve. Defaults to task_params.REWARD_AMOUNT_UL.

Returns:

Valve opening time in seconds.

Return type:

float

Parameters:

amount_ul (float | None)

init_mixin_valve()[source]
Parameters:

self (object)

start_mixin_valve()[source]
valve_open(reward_valve_time)[source]

Open the reward valve for a given amount of time and return bpod data.

Parameters:

reward_valve_time (float) – Amount of time in seconds to open the reward valve.