mirror of
https://github.com/tiqi-group/pydase_service_base.git
synced 2025-04-20 00:20:01 +02:00
fixes Quantity changes through IonizerServer
This commit is contained in:
parent
8b663bc996
commit
6619895239
@ -66,6 +66,8 @@ class RPCInterface:
|
|||||||
# 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].name
|
||||||
|
if isinstance(current_value, Quantity):
|
||||||
|
value = value * current_value.u
|
||||||
elif isinstance(current_value, NumberSlider):
|
elif isinstance(current_value, NumberSlider):
|
||||||
parent_path_list.append(attr_name)
|
parent_path_list.append(attr_name)
|
||||||
attr_name = "value"
|
attr_name = "value"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user