Skip to content

Commit

Permalink
Try again with the test on the setter
Browse files Browse the repository at this point in the history
  • Loading branch information
MargaretDuff committed Aug 8, 2023
1 parent bc7ae27 commit 2d6a48d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def p2(self):
@p2.setter
def p2(self, value):
r""" Setter for the dual value in the proximal calculation."""
if len(value) != len(self.gradient.range_geometry().geometries):
if len(value) == len(self.gradient.range_geometry().geometries):
self._p2 = value
else:
raise TypeError('p2 should be in the range of the gradient of the image')
Expand Down

0 comments on commit 2d6a48d

Please sign in to comment.