The value of engaged and engagement_state is taken from the stimulus in extended_stimulus_presentations that most closely aligns with the start_time of each trial.
Given that extended_stimulus_presentations must first be built, this function is slow.
Add's columns for
engaged
(bool) andengagement_state
(str, 'engaged' or 'disengaged') to theextended_trials
table.Example use:
The value of
engaged
andengagement_state
is taken from the stimulus inextended_stimulus_presentations
that most closely aligns with thestart_time
of each trial.Given that
extended_stimulus_presentations
must first be built, this function is slow.