def yzImage(self, zscale):
    zdim,ydim,xdim = self.data.shape[1:]

    # translate the 0-1 map down to to 256 value
    imgdata = np.uint8(self.data*256)

    # convert the data into a red heatmap
    rgbdata = np.zeros ( [zdim,ydim,3], dtype=np.uint8 )
    rgbdata[:,:,0] = imgdata[:,:,0]

    return Image.frombuffer('RGB', (ydim,zdim), rgbdata, 'raw', 'RGB', 0, 1).resize([ydim, int(zdim*zscale)])
Indicates that the work represented by this span has been completed
dataset/ETHPy150Open neurodata/ndstore/ocpca/timecube.py/TimeCubeFloat32.yzImage--crossover with--dataset/ETHPy150Open opentracing/opentracing-python/opentracing/span.py/Span.finish