Skip to content

Commit

Permalink
weighted
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed Aug 9, 2024
1 parent 7a95cf3 commit c947af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion caput/weighted_median.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ from libcpp.deque cimport deque
from cython.parallel import prange, parallel
from MedianTree cimport Tree, Data
cimport numpy as np
np.import_array()
cimport cython

# Required for numpy 2.0 compatibility
np.PyArray_ImportNumPyAPI()

# Define the fused types that can be used for the data or weights in the median routine
ctypedef fused data_t:
int
Expand Down

0 comments on commit c947af4

Please sign in to comment.