mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-07-11 20:01:50 +02:00
fix: convert quantity dict to quantity when loading from json
This commit is contained in:
@ -185,6 +185,10 @@ class DataService(rpyc.Service, AbstractDataService):
|
|||||||
parts = path.split(".")
|
parts = path.split(".")
|
||||||
attr_name = parts[-1]
|
attr_name = parts[-1]
|
||||||
|
|
||||||
|
# Convert dictionary into Quantity
|
||||||
|
if class_value_type == "Quantity":
|
||||||
|
value = u.convert_to_quantity(value)
|
||||||
|
|
||||||
self.update_DataService_attribute(parts[:-1], attr_name, value)
|
self.update_DataService_attribute(parts[:-1], attr_name, value)
|
||||||
else:
|
else:
|
||||||
logger.info(
|
logger.info(
|
||||||
|
Reference in New Issue
Block a user