Remove unused numpy reshape from MatplotlibRenderer

pull/357/head
nyanpasu64 2018-08-15 03:47:47 -07:00
rodzic fccfb61649
commit fb7ac5d006
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -140,7 +140,6 @@ class MatplotlibRenderer:
assert (w, h) == canvas.get_width_height()
buffer_rgb: np.ndarray = np.frombuffer(canvas.tostring_rgb(), np.uint8) # TODO Pycharm type inference error
np.reshape(buffer_rgb, (w, h, RGB_DEPTH))
assert buffer_rgb.size == w * h * RGB_DEPTH
return buffer_rgb