def xyImage ( self ):
    # This works for 16-> conversions
    zdim,ydim,xdim = self.data.shape[1:]
    if self.data.dtype == np.uint8:  
      return Image.frombuffer ( 'L', (xdim,ydim), self.data[0,0,:,:].flatten(), 'raw', 'L', 0, 1)
    else:
      outimage = Image.frombuffer ( 'I;16', (xdim,ydim), self.data[0,0,:,:].flatten(), 'raw', 'I;16', 0, 1)
      return outimage.point(lambda i:i*(1./256)).convert('L')
Trace of np.dot(X, Y.T).
dataset/ETHPy150Open neurodata/ndstore/ocpca/timecube.py/TimeCube16.xyImage--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/decomposition/nmf.py/trace_dot