trial_events#
Reading the events of one trial (a row): first and last choice, reaction time, center port holds, misses. Event columns (Port1In, STATE_*_START…) can be lists or text such as “[1.2, 3.4]”.
Functions
True if the first center poke was shorter than holding_time (None if unknown). |
|
Side of the first side poke after the stimulus started (None if no poke). |
|
Sometimes the animal can poke in the center port and not wait long enough to get the stimulus state. |
|
Get the start and end times of the session. |
|
This calculates everything, including those occurring in the ITIs for example. |
|
Time from the start of the trial to the first center poke (NaN if none). |
|
checks if STATE_stimulus_state_END is the last state |
|
checks if there was an early pokeout in the center port before holding the required time |
|
Side of the last side poke before the stimulus started (None if no poke). |
|
True if the trial ended when the stimulus state ended (no choice). |
|
parse_events for every trial of a column ([] for every trial if the column is missing). |
|
Times of one event in one trial, as a list of floats ([] if none). |
|
Duration of every poke in a port during the trial (including the ITI). |
|
Time from the last center poke out to the next side poke (NaN if none). |
|
This method calculates the initiation time of a trial. |
|
This method calculates the reaction time of a trial. |
Classes
|
Event columns of a dataframe, read with parse_events. |