rsatoolbox.data.ops module

Operations on multiple Datasets

rsatoolbox.data.ops.merge_datasets(sets: List[TemporalDataset]) TemporalDataset[source]
rsatoolbox.data.ops.merge_datasets(sets: List[Dataset]) Dataset

Concatenate measurements to create one Dataset of the same type

Only descriptors that exist on all subsets are assigned to the merged dataset. Dataset-level descriptors that are identical across subsets will be passed on, those that vary will become obs_descriptors. Channel and Time descriptors must be identical across subsets.

Parameters:

sets (Union[List[Dataset], List[TemporalDataset]]) – List of Dataset or TemporalDataset objects. Must all be the same type.

Returns:

The new dataset combining measurements

and descriptors from the given subset datasets.

Return type:

Union[Dataset, TemporalDataset]