-
Notifications
You must be signed in to change notification settings - Fork 23
Deprecate positional out argument in dpnp.minimum and dpnp.maximum
#2659
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
base: master
Are you sure you want to change the base?
Conversation
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/2659/index.html |
|
Array API standard conformance tests for dpnp=0.20.0dev0=py313h509198e_56 ran successfully. |
e7f1c9d to
75f6a27
Compare
| assert dpnp.allclose(result, expected) | ||
|
|
||
|
|
||
| @testing.with_requires("numpy>=2.4") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to mute warning in the tests:
dpnp/tests/test_binary_ufuncs.py: 10 warnings
/localdisk/work/antonvol/miniforge3/envs/dpnp_dev/lib/python3.13/unittest/case.py:238: DeprecationWarning: Passing more than 2 positional arguments is deprecated. If you meant to use the third argument as an output, use the `out` keyword argument instead.
callable_obj(*args, **kwargs)
dpnp/tests/test_sycl_queue.py: 18 warnings
/localdisk/work/antonvol/code/dpnp/dpnp/tests/test_sycl_queue.py:1040: DeprecationWarning: `dpnp.asfarray` is deprecated, and will be removed in a future release. Please use `dpnp.asarray` with an appropriate dtype instead.
dpnp_data = getattr(dpnp, func)(data, device=device)
dpnp/tests/test_usm_type.py::test_array_copy[device-device-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[device-shared-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[device-host-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[shared-device-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[shared-shared-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[shared-host-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[host-device-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[host-shared-asfarray]
dpnp/tests/test_usm_type.py::test_array_copy[host-host-asfarray]
/localdisk/work/antonvol/code/dpnp/dpnp/tests/test_usm_type.py:299: DeprecationWarning: `dpnp.asfarray` is deprecated, and will be removed in a future release. Please use `dpnp.asarray` with an appropriate dtype instead.
y = getattr(dpnp, func)(x, usm_type=usm_type_y)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still need to mute:
dpnp/tests/test_binary_ufuncs.py: 10 warnings
/localdisk/work/antonvol/miniforge3/envs/dpnp_dev/lib/python3.13/unittest/case.py:238: DeprecationWarning: Passing more than 2 positional arguments is deprecated. If you meant to use the third argument as an output, use the `out` keyword argument instead.
callable_obj(*args, **kwargs)
This PR suggests raising a
DeprecationWarningwhenoutis passed positionally todpnp.minimumanddpnp.maximum.Align with NumPy 2.4