From 8da201830271b2b0c8033bbc03178e8df214258c Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 16 Apr 2023 02:44:20 +0200 Subject: [PATCH] Set fixed values --- pyhon/parameter/fixed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhon/parameter/fixed.py b/pyhon/parameter/fixed.py index c3f60ec..52595ed 100644 --- a/pyhon/parameter/fixed.py +++ b/pyhon/parameter/fixed.py @@ -16,6 +16,6 @@ class HonParameterFixed(HonParameter): return self._value if self._value is not None else "0" @value.setter - def value(self, value): - if not value == self._value: - raise ValueError("Can't change fixed value") + def value(self, value: str | float) -> None: + # Fixed values seems being not so fixed as thought + self._value = value