Skip to content

Commit

Permalink
Fix CentralDepth
Browse files Browse the repository at this point in the history
Fix CentralDepth
  • Loading branch information
AWehrhahn authored Jul 24, 2023
1 parent 77d15a5 commit 104df2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pysme/smelib/_smelib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ static PyObject *smelib_CentralDepth(PyObject *self, PyObject *args, PyObject *k
if (mu_arr == NULL)
goto fail;

if (PyArray_NDIM(mu_arr) != 0)
if (PyArray_NDIM(mu_arr) != 1)
{
PyErr_SetString(PyExc_ValueError, "Expected mu array with ndim == 1");
goto fail;
Expand Down

0 comments on commit 104df2e

Please sign in to comment.