spiketools.utils.trials.split_trials_by_condition_list

spiketools.utils.trials.split_trials_by_condition_list(trials, conditions)[source]

Split trial data by condition label, for trial data as a list.

Parameters:
trialslist

Trial data, with each element representing a trial.

conditionslist

Condition labels for each trial.

Returns:
split_trialsdict

The trial data, organized by condition. Each key is a condition label with values as the data for that condition.