Skip to content

Commit

Permalink
Changed the fix for the numpy api deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vhaasteren committed Nov 8, 2023
1 parent 4da91df commit c8c8470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastshermanmorrison/cython_fastshermanmorrison.pyx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# cython: language_level=3

# Define this before importing from numpy
cdef extern from "numpy/arrayobject.h":
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pass
# distutils: define_macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]

cimport numpy as np
import numpy as np
Expand Down

0 comments on commit c8c8470

Please sign in to comment.