reformat_trial_data

reformat_trial_data(data: dict, date: str, trial: int, subject: str, task: str, system_name: str) dict[source]

Reformats raw trial data into a flattened dictionary structure.

Parameters:
  • data (dict) – Raw data dictionary containing events and states.

  • date (str) – Date string.

  • trial (int) – Trial number.

  • subject (str) – Subject identifier.

  • task (str) – Task identifier.

  • system_name (str) – System name.

Returns:

Flattened dictionary including formatted start/end times.

Return type:

dict