Skip to content

Commit fd85ef8

Browse files
committed
update _scipy_fft.py
1 parent 76cfca0 commit fd85ef8

File tree

3 files changed

+92
-210
lines changed

3 files changed

+92
-210
lines changed

mkl_fft/_float_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __downcast_float128_array(x):
8282
def __supported_array_or_not_implemented(x):
8383
"""
8484
Used in _scipy_fft to convert array to float32,
85-
float64, complex64, or complex128 type or return NotImplemented
85+
float64, complex64, or complex128 type or raise NotImplementedError
8686
"""
8787
__x = np.asarray(x)
8888
black_list = [np.half]
@@ -91,5 +91,5 @@ def __supported_array_or_not_implemented(x):
9191
if hasattr(np, "complex256"):
9292
black_list.append(np.complex256)
9393
if __x.dtype in black_list:
94-
return NotImplemented
94+
raise NotImplementedError
9595
return __x

0 commit comments

Comments
 (0)