Skip to content

Commit 69bfdbb

Browse files
Merge pull request #78 from IntelPython/fix-plan
Raise NotImplementedError exception instead of ValueError for non-default plan parameters in scipy fft backend
2 parents c0004cc + 40eb3f4 commit 69bfdbb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "1.3.3" %}
1+
{% set version = "1.3.4" %}
22
{% set buildnumber = 0 %}
33

44
package:

mkl_fft/_scipy_fft_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ def _check_norm(norm):
186186
def _check_plan(plan):
187187
if plan is None:
188188
return
189-
raise ValueError(
190-
f"Value plan={plan} is currently not supported"
189+
raise NotImplementedError(
190+
f"Passing a precomputed plan with value={plan} is currently not supported"
191191
)
192192

193193

mkl_fft/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.3.3'
1+
__version__ = '1.3.4'

mkl_fft/tests/test_interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@ def test_scipy_fft_arg_validate():
136136
with pytest.raises(ValueError):
137137
mfi.scipy_fft.fft([1,2,3,4], norm=b"invalid")
138138

139-
with pytest.raises(ValueError):
139+
with pytest.raises(NotImplementedError):
140140
mfi.scipy_fft.fft([1,2,3,4], plan="magic")
141141

0 commit comments

Comments
 (0)