From fde41ac456ccfd548b464d8da49dfa31d2f7e831 Mon Sep 17 00:00:00 2001 From: Alexandre Leites <1256013+alexandre-leites@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:28:22 +0100 Subject: [PATCH] Update parameter.py to fix parameter being set from history --- pyhon/parameter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyhon/parameter.py b/pyhon/parameter.py index 2970fd9..7f4e1f7 100644 --- a/pyhon/parameter.py +++ b/pyhon/parameter.py @@ -75,6 +75,7 @@ class HonParameterRange(HonParameter): @value.setter def value(self, value): + value = int(value) if self._min <= value <= self._max and not value % self._step: self._value = value else: