#NEWLINE# def updatePixels( self , tlc , shape , props , **pixelBlocks ) : #NEWLINE# #INDENT# pixelBlocks [ 'output_pixels' ] = pixelBlocks [ 'r_pixels' ] . astype ( props [ 'pixelType' ] , copy = False ) #NEWLINE# m = ( pixelBlocks [ 'm_pixels' ] . astype ( 'u1' , copy = False ) > 0 ) #NEWLINE# pixelBlocks [ 'output_mask' ] = np . putmask ( np . zeros ( shape , 'u1' ) , m , 1 ) #NEWLINE# return pixelBlocks