Skip to content

Commit a5e18e6

Browse files
committed
bug: changed RegularizedInversion inot regularized_inversion
This change is required for the method to work with pylops v2.
1 parent 04bb21f commit a5e18e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyproximal/optimization/primal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44

55
from math import sqrt
6-
from pylops.optimization.leastsquares import RegularizedInversion
6+
from pylops.optimization.leastsquares import regularized_inversion
77
from pylops.utils.backend import to_numpy
88
from pyproximal.proximal import L2
99

@@ -762,9 +762,9 @@ def ADMML2(proxg, Op, b, A, x0, tau, niter=10, callback=None, show=False, **kwar
762762
u = z = np.zeros(A.shape[0], dtype=A.dtype)
763763
for iiter in range(niter):
764764
# create augumented system
765-
x = RegularizedInversion(Op, [A, ], b,
766-
dataregs=[z - u, ], epsRs=[sqrttau, ],
767-
x0=x, **kwargs_solver)
765+
x = regularized_inversion(Op, b, [A, ], x0=x,
766+
dataregs=[z - u, ], epsRs=[sqrttau, ],
767+
**kwargs_solver)[0]
768768
Ax = A @ x
769769
z = proxg.prox(Ax + u, tau)
770770
u = u + Ax - z

0 commit comments

Comments
 (0)