Skip to content

Commit 493d6c6

Browse files
authored
Merge 3155396 into b65c5af
2 parents b65c5af + 3155396 commit 493d6c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.18.0] - 05/23/2025
7+
## [0.18.0] - 06/23/2025
88

99
This release achieves 100% compliance with Python Array API specification (revision [2024.12](https://data-apis.org/array-api/2024.12/)).
1010
The release provides enhanced compatibility with NumPy 2.2.5. Window and mathematical routines are complemented by a set of new functions.
@@ -52,6 +52,7 @@ Moreover, it adds support to build `dpnp` from the source for AMD GPUs.
5252
* Added handling of empty string passed to a test env variable defining data type scope as a `False` value [#2415](https://github.com/IntelPython/dpnp/pull/2415)
5353
* Resolved build issues on non-Intel targets in `dpnp.i0` and `dpnp.kaiser` [#2439](https://github.com/IntelPython/dpnp/pull/2439)
5454
* Ensure consistency in the `dpnp.linalg.LinAlgError` exception raised on singular input matrices for both non-batched and batched cases in `dpnp.linalg.inv` [#2458] (https://github.com/IntelPython/dpnp/pull/2458)
55+
* Updated test f/w to correct a check of array interface while converting to `numpy.ndarray` for comparison [#2467] (https://github.com/IntelPython/dpnp/pull/2467)
5556

5657

5758
## [0.17.0] - 02/26/2025

dpnp/dpnp_utils/dpnp_algo_utils.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ cdef ERROR_PREFIX = "DPNP error:"
7676

7777

7878
def convert_item(item):
79-
if getattr(item, "__sycl_usm_array_interface__", False):
79+
if hasattr(item, "__sycl_usm_array_interface__"):
8080
item_converted = dpnp.asnumpy(item)
81-
elif getattr(item, "__array_interface__", False): # detect if it is a container (TODO any better way?)
81+
elif hasattr(item, "__array_interface__"): # detect if it is a container (TODO any better way?)
8282
mod_name = getattr(item, "__module__", 'none')
8383
if (mod_name != 'numpy'):
8484
item_converted = dpnp.asnumpy(item)

0 commit comments

Comments
 (0)