Skip to content

Commit d34a7b6

Browse files
authored
Merge branch 'main' into ManasviGoyal/reducer-tests
2 parents bc7e1c0 + 6f688e9 commit d34a7b6

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
python-architecture: x86
5454
runs-on: windows-latest
5555
dependencies-kind: full
56+
- python-version: '3.9'
57+
python-architecture: x86
58+
runs-on: windows-latest
59+
dependencies-kind: numpy1
5660
- python-version: '3.8'
5761
python-architecture: x64
5862
runs-on: ubuntu-latest
@@ -61,18 +65,6 @@ jobs:
6165
python-architecture: x64
6266
runs-on: ubuntu-latest
6367
dependencies-kind: pypy
64-
- python-version: '3.11'
65-
python-architecture: x64
66-
runs-on: ubuntu-latest
67-
dependencies-kind: numpy2
68-
- python-version: '3.11'
69-
python-architecture: x64
70-
runs-on: macos-11
71-
dependencies-kind: numpy2
72-
- python-version: '3.11'
73-
python-architecture: x64
74-
runs-on: windows-latest
75-
dependencies-kind: numpy2
7668

7769
runs-on: ${{ matrix.runs-on }}
7870

requirements-test-numpy1.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
numpy<2.0.0
2+
pytest>=6
3+
pytest-cov
4+
pytest-xdist

requirements-test-numpy2.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/awkward/_reducers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def _dtype_for_kernel(cls, dtype: DTypeLike) -> DTypeLike:
6262
else:
6363
return dtype
6464

65-
_use32 = (ak._util.win or ak._util.bits32) and not ak._util.numpy2
65+
_use32 = ((ak._util.win or ak._util.bits32) and not ak._util.numpy2) or (
66+
ak._util.numpy2 and np.intp is np.int32
67+
)
6668

6769
@classmethod
6870
def _promote_integer_rank(cls, given_dtype: DTypeLike) -> DTypeLike:

0 commit comments

Comments
 (0)