The following code gives me: local variable 'param' referenced before assignment
value_per_label = [(label, value) \ for label, value in zip(gui_names(param),values) \ for (param, values) in parameters] What am I doing wrong?
parameters looks like this:
parameters = [("A", (1,3,5)), ("B", (2,3,4))] and I wish to convert it to:
value_per_label = [("A_min", 1), ("A_current", 3), ("A_max", 5), ("B_min", 2), ("B_current", 3), ("BA_max", 4)]
gui_names[param]ifgui_namesis a dictionary