Skip to content

Commit 3fe5c9d

Browse files
committed
minor: another fix in callback docstring example
1 parent f510e30 commit 3fe5c9d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pylops/optimization/basesolver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ def callback( # noqa: B027
335335
>>> def callback(x):
336336
... print(f"Running callback, current solution {x}")
337337
...
338-
>>> I = Identity(10)
339-
>>> I
338+
>>> IOp = Identity(10)
339+
>>> IOp
340340
<10x10 Identity with dtype=float64>
341-
>>> cgsolve = CG(I, np.arange(10))
341+
>>> cgsolve = CG(IOp)
342342
>>> cgsolve.callback = callback
343343
344344
>>> x = np.ones(10)

0 commit comments

Comments
 (0)