Exemplo n.º 1
0
Arquivo: base.py Projeto: gem/h5py
    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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
Arquivo: base.py Projeto: B-Rich/h5py
 def ref(self):
     """ An (opaque) HDF5 reference to this object """
     return h5r.create(self.id, b'.', h5r.OBJECT)
Exemplo n.º 6
0
 def ref(self):
     """ An (opaque) HDF5 reference to this object """
     return h5r.create(self.id, b'.', h5r.OBJECT)
Exemplo n.º 7
0
 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)