code: def _scale_shape(dshape, scale = (1,1,1)):
      
      nshape = np.round(np.array(dshape) * np.array(scale))
      return tuple(nshape.astype(np.int))
docs: returns the shape after scaling (should be the same as ndimage.zoom