From 6619895239589ff92227383e46be0ed810fc367b Mon Sep 17 00:00:00 2001 From: Mose Mueller Date: Thu, 1 Feb 2024 10:34:04 +0100 Subject: [PATCH] fixes Quantity changes through IonizerServer --- icon_service_base/ionizer_interface/rpc_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icon_service_base/ionizer_interface/rpc_interface.py b/icon_service_base/ionizer_interface/rpc_interface.py index 354d3cc..9867c7a 100644 --- a/icon_service_base/ionizer_interface/rpc_interface.py +++ b/icon_service_base/ionizer_interface/rpc_interface.py @@ -66,6 +66,8 @@ class RPCInterface: # I need to use the name attribute as this is what # DataService.__set_attribute_based_on_type expects value = list(current_value.__class__)[value].name + if isinstance(current_value, Quantity): + value = value * current_value.u elif isinstance(current_value, NumberSlider): parent_path_list.append(attr_name) attr_name = "value"