Skip to content

Commit

Permalink
Fix for Numpy 2.0
Browse files Browse the repository at this point in the history
closes #30
  • Loading branch information
has2k1 committed Jun 27, 2024
1 parent fcadb04 commit 98987cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skmisc/loess/src/_loess.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ cdef class loess_prediction:
self.allocated = False

# Note : we need a copy as we may have to normalize
p_ndr = np.array(newdata, copy=True, subok=True, order='C')
p_ndr = np.asarray(newdata, copy=True, order='C')
p_ndr = p_ndr.astype(float)

# Dimensions should match those of the input
Expand Down

0 comments on commit 98987cb

Please sign in to comment.