Repository navigation
Numpy 2.0 binary support testing #9466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6dcf669
8a92ce3
df7db90
d8cc112
c6b18fc
599db84
0ba75f4
b7ce802
9246f32
85b7f5f
8a41023
dec5772
fa1f94c
efa4038
3678fa1
38fd394
8df12f2
d10323d
8e62bc9
ea718ef
b2214a8
390af01
b56e85f
73bfadf
4819679
a5d1e74
5c025c1
636be74
7ab228b
07369cd
47db361
29cdbb9
2855a03
d4fe5ec
cffa09d
0dc8a4b
e671b14
88b0fbb
d3096dc
af51874
af6cc19
ba4d88a
54d524a
56010e0
a16c6b9
02e7d0d
207b148
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ | |
| from numba.core.registry import cpu_target | ||
| from numba.core.base import BaseContext | ||
| from numba.np import ufunc_db | ||
| from numba.tests.support import expected_failure_np2 | ||
|
|
||
| is32bits = tuple.__itemsize__ == 4 | ||
| iswindows = sys.platform.startswith('win32') | ||
|
|
@@ -1695,6 +1696,8 @@ class TestLoopTypesComplex(_LoopTypesTester): | |
|
|
||
|
|
||
| TestLoopTypesComplex.autogenerate() | ||
| expected_failure_np2(TestLoopTypesComplex.test_sign_F_F) | ||
| expected_failure_np2(TestLoopTypesComplex.test_sign_D_D) | ||
|
Comment on lines
+1699
to
+1700
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Odd that these fails. Need to investigate
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be emanating from the changed behavoir of import numpy as np
def foo(a0, a1):
np.sign(a0, a1)
x = np.array([-0. - 1.j, np.nan, -0. -1.j ,0. +0.j , 1.5+1.5j , np.nan ,1.5+1.5j, 0. +0.j ], dtype=np.complex64)
y = np.array([0,0,0,0,0,0,0,0], dtype=np.complex64)
foo(x, y)
print(list(y))
# Numpy 2
# [np.complex64(-0-1j), np.complex64(nan+nanj),
# np.complex64(-0-1j), np.complex64(0j),
# np.complex64(0.7071068+0.7071068j), np.complex64(nan+nanj),
# np.complex64(0.7071068+0.7071068j), np.complex64(0j)]
# Numpy 1
# [(-1+0j), (nan+0j), (-1+0j), 0j, (1+0j), (nan+0j), (1+0j), 0j]
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Np2 changed the definition of np.sign: https://numpy.org/devdocs/reference/generated/numpy.sign.html |
||
|
|
||
|
|
||
| class TestLoopTypesDatetime(_LoopTypesTester): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.