atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Matching fixes #615

Closed swhite2401 closed 1 year ago

swhite2401 commented 1 year ago

Couple bugs were found in the matching module:

These are now fixed.

In addition an improved handling of phase advance avoiding modulos in users script not matching integer part of the tune is added. Finally for 2D and 4D linopt calculations, the AtError 'Unstable ring' is caught and sent back as warning, in which case NaN are returned

swhite2401 commented 1 year ago

@simoneliuzzo , is this ok for you? You will have to remove the modulo on the desired phase in your matching jobs as discussed yesterday.

swhite2401 commented 1 year ago

For Nans instead of errors, the rule is not clear. For safety. penalty evaluation functions should be prepared for both possibilities.

True, to be kept in mind for the new matching module

swhite2401 commented 1 year ago

I just checked with @simoneliuzzo this is ok so I merge it

swhite2401 commented 1 year ago

@lfarv could you re-approve? I just made some pep8 fixes