Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbalke committed Feb 11, 2022
1 parent 82e4eb3 commit 88a67f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def setup_method(self):
def test_squared_l2(self):
L = loss.SquaredL2Loss(y=self.y, A=self.Ao)
assert L.has_eval == True
assert L.has_prox == False # not diagonal
assert L.has_prox == True

# test eval
np.testing.assert_allclose(L(self.v), 0.5 * ((self.Ao @ self.v - self.y) ** 2).sum())
Expand Down Expand Up @@ -375,7 +375,7 @@ def test_squared_l2(self):
def test_weighted_squared_l2(self):
L = loss.WeightedSquaredL2Loss(y=self.y, A=self.Ao, W=self.W)
assert L.has_eval == True
assert L.has_prox == False # not diagonal
assert L.has_prox == True

# test eval
np.testing.assert_allclose(
Expand Down

0 comments on commit 88a67f3

Please sign in to comment.