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 7b67ba2 commit dbb7994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/festim/stepsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def max_stepsize(self):

@max_stepsize.setter
def max_stepsize(self, value):
if value is not None and not callable(value):
if isinstance(value, float):
if value < self.initial_value:
raise ValueError(
"maximum stepsize cannot be less than initial stepsize"
Expand Down

0 comments on commit dbb7994

Please sign in to comment.