mirror of
https://github.com/tiqi-group/pydase_service_base.git
synced 2026-01-23 12:44:25 +01:00
fixes setting enums through Ionizer
This commit is contained in:
@@ -118,7 +118,7 @@ class RPCInterface:
|
|||||||
# https://docs.python.org/3/library/enum.html#enum.EnumType.__iter__
|
# https://docs.python.org/3/library/enum.html#enum.EnumType.__iter__
|
||||||
# I need to use the name attribute as this is what
|
# I need to use the name attribute as this is what
|
||||||
# DataService.__set_attribute_based_on_type expects
|
# DataService.__set_attribute_based_on_type expects
|
||||||
value = list(current_value.__class__)[value].name
|
value = list(current_value.__class__)[value]
|
||||||
if isinstance(current_value, Quantity):
|
if isinstance(current_value, Quantity):
|
||||||
value = value * current_value.u
|
value = value * current_value.u
|
||||||
elif isinstance(current_value, NumberSlider):
|
elif isinstance(current_value, NumberSlider):
|
||||||
|
|||||||
Reference in New Issue
Block a user