Fix missing conversion of typed memoryview to numpy array

This commit is contained in:
Johannes Schönberger
2013-08-17 23:17:05 +02:00
parent 5b38bdac59
commit a8f0d46ab2
+1 -1
View File
@@ -86,7 +86,7 @@ def line(Py_ssize_t y, Py_ssize_t x, Py_ssize_t y2, Py_ssize_t x2):
rr[dx] = y2
cc[dx] = x2
return rr, cc
return np.asarray(rr), np.asarray(cc)
def polygon(y, x, shape=None):