eelbrain.Dataset.update

Dataset.update(self, ds, replace=False, info=True)

Update the Dataset with all variables in ds.

Parameters:
ds : Dataset | dict

A Dataset or other dictionary-like object whose keys are strings and whose values are data-objects.

replace : bool

If a variable in ds is already present, replace it. If False, duplicates raise a ValueError (unless they are equivalent).

info : bool

Also update the info dictionary.

Notes

By default, if a key is present in both Datasets, and the corresponding variables are not equal on all cases, a ValueError is raised. If all values are equal, the variable in ds is copied into the Dataset that is being updated (the expected behavior of .update()).