mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 08:40:03 +02:00
fix: convert quantity dict to quantity when loading from json
This commit is contained in:
parent
b790b6a6ca
commit
9054f05f30
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user