spiketools.utils.trials.split_trials_by_condition_array¶
- spiketools.utils.trials.split_trials_by_condition_array(trials, conditions)[source]¶
Split trial data by condition label, for trial data as an array.
- Parameters:
- trials2d array
Trial data, with each row 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.