Commit bf2c212c authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

numpy indexing uses integers only now

parent 0583a9cf
Pipeline #7217 passed with stages
in 8 minutes and 21 seconds
......@@ -74,7 +74,7 @@ def generate_colors(height, width, shift):
retval = numpy.ndarray((3, height, width), dtype='uint8')
# standard color test pattern
w = width / 7; w2 = 2*w; w3 = 3*w; w4 = 4*w; w5 = 5*w; w6 = 6*w
w = width // 7; w2 = 2*w; w3 = 3*w; w4 = 4*w; w5 = 5*w; w6 = 6*w
retval[0,:,0:w] = 255; retval[1,:,0:w] = 255; retval[2,:,0:w] = 255;
retval[0,:,w:w2] = 255; retval[1,:,w:w2] = 255; retval[2,:,w:w2] = 0;
retval[0,:,w2:w3] = 0; retval[1,:,w2:w3] = 255; retval[2,:,w2:w3] = 255;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment