Skip to content

Commit cc46fba

Browse files
committed
Fixing np.ndim error in mpifft.py
1 parent cbc69c8 commit cc46fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpi4py_fft/mpifft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __init__(self, comm, shape=None, axes=None, dtype=float, grid=None,
211211
shape = darray.pencil.shape
212212

213213
if axes is not None:
214-
axes = list(axes) if np.ndim(axes) else [axes]
214+
axes = list(axes) if not isinstance(axes, int) else [axes]
215215
else:
216216
axes = list(range(len(shape)))
217217
if darray is not None:

0 commit comments

Comments
 (0)