def __getitem__(self, args): if not isinstance(self.id, h5d.DatasetID): raise TypeError("Region references can only be made to datasets") from . import selections selection = selections.select(self.id.shape, args, dsid=self.id) return h5r.create(self.id, b".", h5r.DATASET_REGION, selection._id)
def __getitem__(self, args): selection = sel.select(self.id.shape, args, dsid=self.id) return h5r.create(self.id, b'.', h5r.DATASET_REGION, selection._id)
def __getitem__(self, args): """ Takes arbitrary selection terms and produces a RegionReference object. Selection must be compatible with the dataset. """ selection = select(self.id.shape, args) return h5r.create(self.id, '.', h5r.DATASET_REGION, selection.id)
def ref(self): """ An (opaque) HDF5 reference to this object """ return h5r.create(self.id, b'.', h5r.OBJECT)
def __getitem__(self, args): if not isinstance(self.id, h5d.DatasetID): raise TypeError("Region references can only be made to datasets") from . import selections selection = selections.select(self.id.shape, args, dsid=self.id) return h5r.create(self.id, b'.', h5r.DATASET_REGION, selection._id)