Skip to content

Commit

Permalink
Update code for newer NumPy
Browse files Browse the repository at this point in the history
1. Removed use of vendored numpy.pxd, replaced it with cimport numpy
   to resolve runtime warning during import of change in size of
   broadcast struct
2. Use explicit namespace for NumPy C-API symbols imported by
   Cython. This caught several issues where C-API ndarray object
   was used where Python object of type np.ndarray was intended.
3. Resolve compilation warnings reported by Clang about ignored
   type qualifier during casting.

Local build now passes, import does not report the runtime warning,
and test suite passes.
  • Loading branch information
oleksandr-pavlyk committed Jul 19, 2024
1 parent 64d9fdd commit 51f8ddc
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 731 deletions.
Loading

0 comments on commit 51f8ddc

Please sign in to comment.