Skip to content

Commit

Permalink
py: fix error msg for type 3 plan
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Jan 23, 2025
1 parent e4a85e9 commit 51ed954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cufinufft/cufinufft/_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(self, nufft_type, n_modes, n_trans=1, eps=1e-6, isign=None,
dim = n_modes
n_modes = (1,) * dim # Ignored, can be anything
else:
raise ValueError("Type 3 plan must have n_modes_or_dim equal to the dimension")
raise ValueError("For a type 3 plan, n_modes_or_dim must be a single number, the dimension")
else:
if isinstance(n_modes, numbers.Integral):
n_modes = (n_modes,)
Expand Down

0 comments on commit 51ed954

Please sign in to comment.