コード例 #1
0
ファイル: base.py プロジェクト: 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)
コード例 #2
0
ファイル: dataset.py プロジェクト: bfroehle/h5py
 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)
コード例 #3
0
ファイル: selections.py プロジェクト: bfroehle/h5py
 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)
コード例 #4
0
ファイル: selections.py プロジェクト: Juxi/OpenSignals
 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)
コード例 #5
0
ファイル: base.py プロジェクト: B-Rich/h5py
 def ref(self):
     """ An (opaque) HDF5 reference to this object """
     return h5r.create(self.id, b'.', h5r.OBJECT)
コード例 #6
0
 def ref(self):
     """ An (opaque) HDF5 reference to this object """
     return h5r.create(self.id, b'.', h5r.OBJECT)
コード例 #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)