pymad / cpymad

cPyMAD is a python interface to Mad-X using cython and libmadx
http://cern.ch/pymad
Apache License 2.0
3 stars 3 forks source link

Use plain `dict`s for tables/elements #88

Closed coldfix closed 10 years ago

coldfix commented 10 years ago

IMO, dict is the canonical type for tables of numerical results. These do not really coincide with physical objects that have attributes. They are rather tabular collections of data. On the other hand, changing the Element type to plain dict may be more controversial. I did it mainly for simplicity until a more satisfying approach can be found.

Eothred commented 10 years ago

No problem for me, think this is further simplifying the code which I like