Improve get_data function
A call to get_data
can fail in many different ways, depending on the outcome of a scan (missing channels, missing points, name collision, etc.). It'd be very useful to have proper error messages, especially when debugging continuous scans. Another issue is that the current implementation of get_data
flatten the tree structure, which can cause 2 problems:
- name collision can appear, since the name of the node is used as the array field (and not the fullname)
- channels do not necessary own the same number of points, depending on the tree structure and the master that trigged them
TODO:
-
Add better exception handling to get_data
-
Discuss the expected behavior of get_data
for multi-reference scans -
Find the best solution to avoid name collision -
Implement the chosen solutions