From dbb79949658b75eecda44c0b98f506a6c0ce654c Mon Sep 17 00:00:00 2001 From: Kaelyn Dunnell <150201080+kaelyndunnell@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:30:35 -0500 Subject: [PATCH] Update src/festim/stepsize.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂ©mi Delaporte-Mathurin <40028739+RemDelaporteMathurin@users.noreply.github.com> --- src/festim/stepsize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/festim/stepsize.py b/src/festim/stepsize.py index 2e8274bee..28840efb0 100644 --- a/src/festim/stepsize.py +++ b/src/festim/stepsize.py @@ -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"