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

Commit c993961

Browse files
authored
Refresh requirements (#576)
* Require Numba 0.57+ consistently * Require NumPy 1.21+ (to align with [Numba 0.57.0's NumPy minimum]( https://github.com/numba/numba/blob/0.57.0/setup.py#L25 )) * Allow NumPy 1.24 (soften upper bounds) * Replace deprecated `np.int` with `int` Authors: - https://github.com/jakirkham Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Adam Thompson (https://github.com/awthomp) - Bradley Dice (https://github.com/bdice) - Ray Douglass (https://github.com/raydouglass) URL: #576
1 parent d9788bb commit c993961

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

conda/environments/all_cuda-118_arch-x86_64.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dependencies:
1111
- ipython
1212
- matplotlib-base
1313
- notebook
14-
- numba >=0.49.0
15-
- numpy >=1.19,<1.24
14+
- numba >=0.57.0
15+
- numpy >=1.21
1616
- numpydoc
1717
- pre-commit
1818
- pydata-sphinx-theme

conda/recipes/cusignal/meta.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ requirements:
2828
- setuptools
2929
run:
3030
- cupy >=12.0.0
31-
- numba >=0.49.0
32-
- numpy >=1.19,<1.24
31+
- numba >=0.57.0
32+
- numpy >=1.21
3333
- python
3434
- scipy >=1.6.0
3535

dependencies.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ dependencies:
9696
- output_types: [conda, requirements]
9797
packages:
9898
- cupy >=12.0.0
99-
- numba >=0.49.0
100-
- numpy >=1.19,<1.24
99+
- numba >=0.57.0
100+
- numpy >=1.21
101101
- scipy >=1.6.0
102102
test_notebooks:
103103
common:

python/cusignal/convolution/_convolution_cuda.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def _convolve(
400400
in2 = in2.astype(promType)
401401

402402
# Create empty array to hold number of aout dimensions
403-
out_dimens = np.empty(in1.ndim, np.int)
403+
out_dimens = np.empty(in1.ndim, int)
404404
if val == VALID:
405405
for i in range(in1.ndim):
406406
out_dimens[i] = (
@@ -465,7 +465,7 @@ def _convolve2d(in1, in2, use_convolve, mode, boundary, fillvalue):
465465
raise Exception("Unable to create fill array")
466466

467467
# Create empty array to hold number of aout dimensions
468-
out_dimens = np.empty(in1.ndim, np.int)
468+
out_dimens = np.empty(in1.ndim, int)
469469
if val == VALID:
470470
for i in range(in1.ndim):
471471
out_dimens[i] = in1.shape[i] - in2.shape[i] + 1
@@ -539,7 +539,7 @@ def _convolve1d2o(in1, in2, mode):
539539
in2 = in2.astype(promType)
540540

541541
# Create empty array to hold number of aout dimensions
542-
out_dimens = np.empty(in1.ndim, np.int)
542+
out_dimens = np.empty(in1.ndim, int)
543543
if val == VALID:
544544
for i in range(in1.ndim):
545545
out_dimens[i] = in1.shape[i] - in2.shape[i] + 1
@@ -602,7 +602,7 @@ def _convolve1d3o(in1, in2, mode):
602602
in2 = in2.astype(promType)
603603

604604
# Create empty array to hold number of aout dimensions
605-
out_dimens = np.empty(in1.ndim, np.int)
605+
out_dimens = np.empty(in1.ndim, int)
606606
if val == VALID:
607607
for i in range(in1.ndim):
608608
out_dimens[i] = in1.shape[i] - in2.shape[i] + 1

0 commit comments

Comments
 (0)