Set fixed values
This commit is contained in:
parent
03187745bf
commit
8da2018302
@ -16,6 +16,6 @@ class HonParameterFixed(HonParameter):
|
|||||||
return self._value if self._value is not None else "0"
|
return self._value if self._value is not None else "0"
|
||||||
|
|
||||||
@value.setter
|
@value.setter
|
||||||
def value(self, value):
|
def value(self, value: str | float) -> None:
|
||||||
if not value == self._value:
|
# Fixed values seems being not so fixed as thought
|
||||||
raise ValueError("Can't change fixed value")
|
self._value = value
|
||||||
|
Loading…
Reference in New Issue
Block a user