dataset_name_allowed#

static caput.memdata.MemDiskGroup.dataset_name_allowed(name)[source]#

Used by subclasses to restrict creation of and access to datasets.

This method is called by MemDiskGroup.create_dataset(), MemDiskGroup.require_dataset(), and MemDiskGroup.__getitem__() to check that the supplied dataset name is allowed.

The idea is that subclasses that want to specialize and restrict the layout of the data container can implement this method instead of re-implementing the above mentioned methods.

Parameters:
namestr

Absolute path to proposed dataset.

Returns:
is_allowedbool

All dataset names are allowed by default.