Skip to content

Commit

Permalink
Update src/festim/stepsize.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Delaporte-Mathurin <[email protected]>
  • Loading branch information
kaelyndunnell and RemDelaporteMathurin authored Nov 5, 2024
1 parent 1e57e01 commit c5c7760
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/festim/stepsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ def modify_value(self, value, nb_iterations, t=None):
else:
updated_value = value

max_step = self.get_max_stepsize(t)
if max_step:
if max_step := self.get_max_stepsize(t):
if updated_value > max_step:
updated_value = max_step

Expand Down

0 comments on commit c5c7760

Please sign in to comment.