iblrig.raw_data_loaders.bpod_trial_data_to_dataframes

iblrig.raw_data_loaders.bpod_trial_data_to_dataframes(bpod_trial_data, existing_data=None)[source]

Convert a list of Bpod trial data dictionaries into a list of Pandas DataFrames.

Each DataFrame corresponds to a single trial’s data, as returned by bpod_trial_data_to_dataframe. If existing DataFrames are provided, the new DataFrames will be appended to this list.

Parameters:
  • bpod_trial_data (list of dict) – A list of dictionaries, where each dictionary contains data for a single trial.

  • existing_data (list of pd.DataFrame, optional) – An optional list of existing DataFrames to which the new DataFrames will be appended. If None, a new list will be created.

Returns:

A list of Pandas DataFrames, each containing event data from the corresponding trial.

Return type:

list of pd.DataFrame

Parameters: