In matlab element types are detected looking at attributes likes BendingAngle, PolynomB etc... while in python it checks the class.
This leads to issues when a lattice in matlab can be generated with radiations on in multipoles. This lattice if imported in pyAT cannot be used as ring.radiation_off() does not handle multipoles.
It would to make sure the two implementations are consistent. As a temporary fix I will turn radiations in multipoles in ring.radiations_off()
In
matlab
element types are detected looking at attributes likesBendingAngle
,PolynomB
etc... while in python it checks the class. This leads to issues when a lattice inmatlab
can be generated with radiations on in multipoles. This lattice if imported inpyAT
cannot be used asring.radiation_off(
) does not handle multipoles.It would to make sure the two implementations are consistent. As a temporary fix I will turn radiations in multipoles in
ring.radiations_off()