def float_uint8(inarray):
 retVal = numpy.around((255 * (0.5 + (0.5 * numpy.asarray(inarray)))))
 return retVal.astype(numpy.uint8)

def float_uint8 ( inarray ) : retVal = numpy . around ( ( 255 * ( 0.5 + ( 0.5 * numpy . asarray ( inarray ) ) ) ) ) return retVal . astype ( numpy . uint8 )
converts arrays .