Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #511 from rapidsai/branch-22.10
Browse files Browse the repository at this point in the history
[HOTFIX] `22.10` `numpy` hotfix
  • Loading branch information
ajschmidt8 authored Oct 18, 2022
2 parents 35dc52c + 44e6d0c commit b9be736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda/recipes/cusignal/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ requirements:
run:
- python
- scipy>=1.6.0
- numpy>=1.17.3,<=1.22
- numpy>=1.17.3
- boost
- numba>=0.49.0
- cupy>=8.3.0,<12.0.0a0
Expand Down
4 changes: 2 additions & 2 deletions python/cusignal/filtering/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ def resample(x, num, t=None, axis=0, window=None, domain="time"):
N = int(np.minimum(num, Nx))
Y = cp.zeros(newshape, dtype=X.dtype)
sl[axis] = slice(0, (N + 1) // 2)
Y[sl] = X[sl]
Y[tuple(sl)] = X[tuple(sl)]
sl[axis] = slice(-(N - 1) // 2, None)
Y[sl] = X[sl]
Y[tuple(sl)] = X[tuple(sl)]
y = cp.fft.ifft(Y, axis=axis) * (float(num) / float(Nx))

if x.dtype.char not in ["F", "D"]:
Expand Down

0 comments on commit b9be736

Please sign in to comment.