Removed assertions on n_rows and n_cols in lasp_pyarray.h
This commit is contained in:
parent
c9ad4dc1b4
commit
683c0b6566
@ -48,8 +48,8 @@ static inline PyObject *data_to_ndarray(void *data, int n_rows, int n_cols,
|
|||||||
dims[0] = n_rows;
|
dims[0] = n_rows;
|
||||||
dims[1] = n_cols;
|
dims[1] = n_cols;
|
||||||
}
|
}
|
||||||
assert(n_rows > 0);
|
/* assert(n_rows > 0); */
|
||||||
assert(n_cols > 0);
|
/* assert(n_cols > 0); */
|
||||||
|
|
||||||
PyArrayObject *arr =
|
PyArrayObject *arr =
|
||||||
(PyArrayObject *)PyArray_SimpleNewFromData(2, dims, typenum, data);
|
(PyArrayObject *)PyArray_SimpleNewFromData(2, dims, typenum, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user