Removed assertions on n_rows and n_cols in lasp_pyarray.h

This commit is contained in:
Anne de Jong 2020-08-08 14:07:32 +02:00
parent c9ad4dc1b4
commit 683c0b6566

View File

@ -48,8 +48,8 @@ static inline PyObject *data_to_ndarray(void *data, int n_rows, int n_cols,
dims[0] = n_rows;
dims[1] = n_cols;
}
assert(n_rows > 0);
assert(n_cols > 0);
/* assert(n_rows > 0); */
/* assert(n_cols > 0); */
PyArrayObject *arr =
(PyArrayObject *)PyArray_SimpleNewFromData(2, dims, typenum, data);