hibtc / madgui-old

[OBSOLETE] GUI for accelerator simulations using MAD-X
MIT License
1 stars 0 forks source link

Put constraints in a dict #55

Closed coldfix closed 10 years ago

coldfix commented 10 years ago

Constraints should be put under the key of which function they are matching, e.g:

constraints:
  envx:
    elem1: value1
    elem2: value2
  envy:
    elem1: value3
    elem2: value4

This will also allow to use the plot_ax, update_ax events in DrawConstraints.