atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Fix at disable_6d #625

Closed lfarv closed 1 year ago

lfarv commented 1 year ago

When turning radiation off, at disable_6d considered multipoles with PolynomB == zeros as drifts, so kept the passmethod unchanged. This is corrected by taking into account the Class field for multipoles if it exists, before scanning PolynomB.

lfarv commented 1 year ago

@simoneliuzzo : does it solve the problem for you ?

simoneliuzzo commented 1 year ago

tested this morning. works ok for me.