require_dataset#
- caput.memdata._BaseGroup.require_dataset(name, shape, dtype, **kwargs)[source]#
Require a dataset to exist, create if it doesn’t.
All arguments are passed through to create_dataset.
- Parameters:
- Returns:
- dataset
DatasetLike The requested dataset, or a new dataset if the requested one did not exist.
- dataset
- Raises:
TypeErrorIf an object with the requested name exists but it is not a Dataset.