Skip to content

Commit 3a83f3c

Browse files
committed
bug: Fix problem with b is None
1 parent bfd19e6 commit 3a83f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproximal/proximal/L2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self, Op=None, b=None, q=None, sigma=1., alpha=1.,
9797
self.count = 0
9898

9999
# create data term
100-
if self.Op is not None:
100+
if self.Op is not None and self.b is not None:
101101
self.OpTb = self.sigma * self.Op.H @ self.b
102102
# create A.T A upfront for explicit operators
103103
if self.Op.explicit:

0 commit comments

Comments
 (0)