Skip to content

scanning/scan.py: fix get_plot()

Matias Guijarro requested to merge issue-434 into master

(added WIP: because tests are missing, but the bug is fixed)

As @sebastien.petitdemange already found in issue #434 (closed), get_plot() was broken since groups are named group_N instead of the concatenation of axes names in the group. However, the reason of the bug was more deep: in fact, it worked before by chance, indeed the code was completely forgetting about master channels (sorry, my bad !). For example if get_plot() were called before with roby but group name was roby/robz it would not have worked. It would have worked for robz/roby because first scalar channel would have been like robz/roby:channel_name.

I will add the necessary tests to make sure get_plot() behaves like we want with different combinations.

Fix issue #434 (closed)

Edited by Sebastien Petitdemange

Merge request reports