One issue we have is the mice create a bias for an odour/lick port which hampers ability to reach criterion and value both odours equally for further experiments. One solution is to control the next odour which is presented against the lick port preference of the mouse. An example line of code from the IBL project which we could implement in our setup is:
def next_position(response_buffer): right_proportion = 0.5 right_responses = [int(x) for x in response_buffer if x == 1] right_proportion = sum(right_responses) / len(response_buffer) probRight = random.gauss(right_proportion, 0.5) if probRight < 0.5: position = 'left' else: position = 'right' return position