def getCube(self, ch, zidx, resolution, update=False):

    # get the size of the image and cube
    [xcubedim, ycubedim, zcubedim] = cubedim = self.datasetcfg.cubedim[resolution] 
    cube = Cube.getCube(cubedim, ch.getChannelType(), ch.getDataType())
  
    # get the block from the database
    cubestr = self.kvio.getCube(ch, zidx, resolution, update)

    if not cubestr:
      cube.zeros()
    else:
      # Handle the cube format here and decompress the cube
      if self.NPZ:
        cube.fromNPZ ( cubestr )
      else:
        cube.fromBlosc ( cubestr )

    return cube
Return an iterator for (node, degree).
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.getCube--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingDiGraph.degree_iter