pylhc/MapClass2 — pull request #23 by orblancog (2013-09-09 14:39:29+00:00)
Title: SOLVED Bug: NAME was used as tableNAME and elementNAME while reading twiss

SOLVED Bug: NAME was used as tableNAME and elementNAME while reading twiss

e.g.
$ python
>>> import metaclass2
>>> a = metaclass2.twiss2("twiss")
>>> a.elems[0].TNAME
'TWISS'
>>> a.elems[0].NAME
\the_corresponding_element_name

before, TNAME did not exist and 'TWISS' was always returned as elementNAME.