You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed. There was no check on the condition - energy == 0, in that case there was division by zero in weave module, that is why it returned NaN.
Also added the check on the condition - lperiod == 0,
fixed like this:
if energy == 0 or element.lperiod == 0:
transfer_map.order = 1
....
else:
transfer_map.order = 2
....
undulator transfer map order 2 by default. Twiss does not work (standard sase_tdp.py script)
The text was updated successfully, but these errors were encountered: