Skip to content

Commit 1dd766a

Browse files
committed
Remove **kw from DistributedArray
1 parent eb95a97 commit 1dd766a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mpi4py_fft/distributedarray.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from mpi4py import MPI
33
from .pencil import Pencil, Subcomm
44

5-
comm = MPI.COMM_WORLD
65

76
class DistributedArray(np.ndarray):
87
"""Distributed Numpy array
@@ -40,7 +39,7 @@ class DistributedArray(np.ndarray):
4039
4140
"""
4241
def __new__(cls, global_shape, subcomm=None, val=None, dtype=np.float,
43-
buffer=None, alignment=None, rank=0, **kw):
42+
buffer=None, alignment=None, rank=0):
4443

4544
if isinstance(subcomm, Subcomm):
4645
pass
@@ -249,7 +248,7 @@ def getDarray(pfft, forward_output=True, val=0, rank=0):
249248
return DistributedArray(global_shape, subcomm=p0.subcomm, val=val,
250249
dtype=dtype, rank=rank)
251250

252-
def Function(*args, **kwargs):
251+
def Function(*args, **kwargs): #pragma: no cover
253252
import warnings
254253
warnings.warn("Function() is deprecated; use getDarray().", FutureWarning)
255254
if 'tensor' in kwargs:

0 commit comments

Comments
 (0)