Skip to content
Snippets Groups Projects
Commit d8631836 authored by Egor Sobolev's avatar Egor Sobolev
Browse files

Fix slow data selector keys for motors

parent 29bae21d
No related branches found
No related tags found
No related merge requests found
...@@ -41,9 +41,9 @@ def read_motor_positions(dc, motor_devices, data_selector_id=""): ...@@ -41,9 +41,9 @@ def read_motor_positions(dc, motor_devices, data_selector_id=""):
continue continue
src = data_selector src = data_selector
key = _make_node_name(dev_id) + ".actualPosition" key = _make_node_name(dev_id) + ".actualPosition"
if key not in src.keys(): if key + ".value" not in src.keys():
key = _mangle_device_id(dev_id) + ".actualPosition" key = _mangle_device_id(dev_id) + ".actualPosition"
if key not in src.keys(): if key + ".value" not in src.keys():
continue continue
pos = src[key].ndarray() pos = src[key].ndarray()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment