Skip to content

Commit 3e2379e

Browse files
committed
fix: redefault Op to None in MPILinearOperator
1 parent f10f910 commit 3e2379e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pylops_mpi/LinearOperator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class MPILinearOperator:
3131
3232
Parameters
3333
----------
34-
Op : :obj:`pylops.LinearOperator`
35-
PyLops Linear Operator to wrap.
34+
Op : :obj:`pylops.LinearOperator`, optional
35+
PyLops Linear Operator to wrap. Defaults to ``None``.
3636
shape : :obj:`tuple(int, int)`, optional
3737
Shape of the MPI Linear Operator. Defaults to ``None``.
3838
dtype : :obj:`str`, optional
@@ -42,7 +42,7 @@ class MPILinearOperator:
4242
4343
"""
4444

45-
def __init__(self, Op: LinearOperator, shape: Optional[ShapeLike] = None,
45+
def __init__(self, Op: Optional[LinearOperator] = None, shape: Optional[ShapeLike] = None,
4646
dtype: Optional[DTypeLike] = None, base_comm: MPI.Comm = MPI.COMM_WORLD):
4747
if Op:
4848
self.Op = Op

0 commit comments

Comments
 (0)