format of the counter object for plotselect / if wrong counter name given, the info given is wrong
hello, since the very beginning of bliss we are struggling with plotselect
and the format of the counter to give. I thought I made a ticket previously but I cannot find it.
First, now @valentin.valls puts in red the wrong format (thanks!) but the line says "plotted counter(s) ..." which may not be understood (the word "last" may suggest the previous plotselect, not the current one).
Could you change it to say that the input argument is wrong. At the same time, is it possible that plotselect
recognizes intelligently the argument's type and transforms it into what it requires? We struggle still too often with the correct format (string? object? dots? colon?).
BLANKA [7]: plotselect('simulation_counter_controller.sim_linear') WARNING: 'simulation_counter_controller.sim_linear' is not a valid counter
Plotted counter(s) last selected with plotselect (could be different from the current display):
- simulation_counter_controller.sim_linear
Ideally, it would be
BLANKA [7]: plotselect('simulation_counter_controller.sim_linear')
WARNING: 'simulation_counter_controller.sim_linear' is not a valid counter, you probably meant
'simulation_counter_controller:sim_linear'.
Plotted counter(s) NOW selected (could be different from the current display):
- simulation_counter_controller:sim_linear
A warning if the name cannot be "guessed" should stay.
And finally, is there a way how to have a return from plotselect?
current_plotselected_counter = plotselect()
Thanks!