Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shoubhikraj committed Aug 5, 2024
1 parent a8785e5 commit 936a0c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autode/opt/optimisers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,12 @@ def are_satisfied(self, other: "ConvergenceParams") -> List[bool]:

# unset criteria are always satisfied
for attr in self._num_attrs:
c = float(getattr(self, attr))
v = float(getattr(other, attr))
c = getattr(self, attr)
v = getattr(other, attr)
if c is None:
are_satisfied.append(True)
else:
are_satisfied.append(v <= c)
are_satisfied.append(float(v) < float(c))
return are_satisfied

def meets_criteria(self, other: "ConvergenceParams"):
Expand Down

0 comments on commit 936a0c3

Please sign in to comment.