Skip to content

Commit

Permalink
Use PyArray_ImportNumPyAPI so we can check error status
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jun 19, 2024
1 parent 36f0f9e commit 48f572b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fff_python_wrapper/fffpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* http://mail.scipy.org/pipermail/numpy-discussion/2010-December/054350.html
*/
IMP_OUT fffpy_import_array(void) {
import_array();
return PyArray_ImportNumPyAPI();
}

/* Static functions */
Expand Down

0 comments on commit 48f572b

Please sign in to comment.