hdmf.region module

class hdmf.region.RegionSlicer(target, slice)

Bases: DataRegion

A abstract base class to control getting using a region

Subclasses must implement __getitem__ and __len__

Parameters
  • target (None) – the target to slice

  • slice (None) – the region to slice

property data

The target data. Same as self.target

property region

The selected region. Same as self.slice

property target

The target data

property slice

The selected slice

abstract property __getitem__

Must be implemented by subclasses

abstract property __len__

Must be implemented by subclasses

class hdmf.region.ListSlicer(dataset, region)

Bases: RegionSlicer

Implementation of RegionSlicer for slicing Lists and Data

Parameters
__getitem__(idx)

Get data values from selected data