def updatePixels(self, tlc, shape, props, **pixelBlocks):
inBlocks = pixelBlocks["rasters_pixels"] // get a tuple of pixel blocks where each element is...
n = len(inBlocks) // ...a numpy array corresponding to the pixel block of an input raster
if (n < 1):
raise Exception("No input rasters provided.")
outBlock = np.array(inBlocks[0], dtype="f4") // initialize output pixel block with the first input block
for i in range(1, n): // add each subsequent input block to our local output array
outBlock = outBlock + np.array(inBlocks[i], dtype="f4")