get_left_right_brightness#

get_left_right_brightness(visual_stimulus: Any, correct_side: str, date: Any, village: Any = None) → Tuple[float, float] | None[source]#

Returns (left, right) brightness of the side ports for one trial, whatever the format it was saved in. None if the trial had no light stimulus.

Parameters:
  • visual_stimulus – the value of the visual_stimulus column (text or pair).

  • correct_side – “left” or “right” (needed to read old rows).

  • date – the date of the trial (decides the format, with the village).

  • village – the system_name of the trial (see NEW_TASK_CODE_SINCE).