Skip to content

Commit 7efaf52

Browse files
Merge branch 'master' into correlate_fft
2 parents b768768 + d522480 commit 7efaf52

19 files changed

+179
-65
lines changed

.github/workflows/array-api-skips.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
# no 'uint8' dtype
44
array_api_tests/test_array_object.py::test_getitem_masking
55

6-
# no 'isdtype' function
7-
array_api_tests/test_data_type_functions.py::test_isdtype
8-
array_api_tests/test_has_names.py::test_has_names[data_type-isdtype]
9-
array_api_tests/test_signatures.py::test_func_signature[isdtype]
10-
116
# missing unique-like functions
127
array_api_tests/test_has_names.py::test_has_names[set-unique_all]
138
array_api_tests/test_has_names.py::test_has_names[set-unique_counts]

doc/reference/dtype.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Data type routines
1414
dpnp.min_scalar_type
1515
dpnp.result_type
1616
dpnp.common_type
17-
dpnp.obj2sctype
1817

1918
Creating data types
2019
-------------------

dpnp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# are not installed under any of default paths where Python is searching.
4343
from platform import system
4444

45-
if system() == "Windows":
45+
if system() == "Windows": # pragma: no cover
4646
if hasattr(os, "add_dll_directory"):
4747
os.add_dll_directory(mypath)
4848
os.add_dll_directory(dpctlpath)

dpnp/dpnp_iface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def is_cuda_backend(obj=None):
712712
if (
713713
sycl_device is not None
714714
and sycl_device.backend == dpctl.backend_type.cuda
715-
):
715+
): # pragma: no cover
716716
return True
717717
return False
718718

dpnp/dpnp_iface_histograms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _align_dtypes(a_dtype, bins_dtype, ntype, supported_types, device):
9191
return sample_type, hist_type
9292

9393
# should not happen
94-
return None, None
94+
return None, None # pragma: no cover
9595

9696

9797
def _ravel_check_a_and_weights(a, weights):
@@ -392,7 +392,7 @@ def bincount(x, weights=None, minlength=None):
392392
x.dtype, x.dtype, ntype, supported_types, device
393393
)
394394

395-
if x_casted_dtype is None or ntype_casted is None:
395+
if x_casted_dtype is None or ntype_casted is None: # pragma: no cover
396396
raise ValueError(
397397
f"function '{bincount}' does not support input types "
398398
f"({x.dtype}, {ntype}), "
@@ -607,7 +607,7 @@ def histogram(a, bins=10, range=None, density=None, weights=None):
607607
a.dtype, bin_edges.dtype, ntype, supported_types, device
608608
)
609609

610-
if a_bin_dtype is None or hist_dtype is None:
610+
if a_bin_dtype is None or hist_dtype is None: # pragma: no cover
611611
raise ValueError(
612612
f"function '{histogram}' does not support input types "
613613
f"({a.dtype}, {bin_edges.dtype}, {ntype}), "

dpnp/dpnp_iface_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def choose(x1, choices, out=None, mode="raise"):
138138
)
139139

140140
if x1_desc:
141-
if dpnp.is_cuda_backend(x1_desc.get_array()):
141+
if dpnp.is_cuda_backend(x1_desc.get_array()): # pragma: no cover
142142
raise NotImplementedError(
143143
"Running on CUDA is currently not supported"
144144
)

dpnp/dpnp_iface_libmath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def erf(in_array1):
8282
in_array1, copy_when_strides=False, copy_when_nondefault_queue=False
8383
)
8484
if x1_desc:
85-
if dpnp.is_cuda_backend(x1_desc.get_array()):
85+
if dpnp.is_cuda_backend(x1_desc.get_array()): # pragma: no cover
8686
raise NotImplementedError(
8787
"Running on CUDA is currently not supported"
8888
)

dpnp/dpnp_iface_mathematical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2946,7 +2946,7 @@ def modf(x1, **kwargs):
29462946

29472947
x1_desc = dpnp.get_dpnp_descriptor(x1, copy_when_nondefault_queue=False)
29482948
if x1_desc:
2949-
if dpnp.is_cuda_backend(x1_desc.get_array()):
2949+
if dpnp.is_cuda_backend(x1_desc.get_array()): # pragma: no cover
29502950
raise NotImplementedError(
29512951
"Running on CUDA is currently not supported"
29522952
)

dpnp/dpnp_iface_sorting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def partition(x1, kth, axis=-1, kind="introselect", order=None):
215215

216216
x1_desc = dpnp.get_dpnp_descriptor(x1, copy_when_nondefault_queue=False)
217217
if x1_desc:
218-
if dpnp.is_cuda_backend(x1_desc.get_array()):
218+
if dpnp.is_cuda_backend(x1_desc.get_array()): # pragma: no cover
219219
raise NotImplementedError(
220220
"Running on CUDA is currently not supported"
221221
)

dpnp/dpnp_iface_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _count_reduce_items(arr, axis, where=True):
112112
for ax in axis:
113113
items *= arr.shape[normalize_axis_index(ax, arr.ndim)]
114114
items = dpnp.intp(items)
115-
else:
115+
else: # pragma: no cover
116116
raise NotImplementedError(
117117
"where keyword argument is only supported with its default value."
118118
)

0 commit comments

Comments
 (0)