hibtc / madgui-old

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

Handle composed units in config file #56

Closed coldfix closed 10 years ago

coldfix commented 10 years ago

As far as I can see, unum does not support parsing units from strings like mm**2/s. This means, we can use the unum.Unum constructor to create units from dicts like:

unit = unum.Unit({'mm': 2, 's': -1})