bmad-sim / pytao

PyTao is Python interface for Tao, which is based on the Bmad subroutine library for relativistic charged–particle and X-ray simulations in accelerators and storage rings.
https://bmad-sim.github.io/pytao
GNU General Public License v3.0
9 stars 6 forks source link

Fix fodo notebook example #81

Open ken-lauer opened 5 days ago

ken-lauer commented 5 days ago

Seen as part of the effort in #75 :

RuntimeError: Command: reinit tao -clear -init $ACC_ROOT_DIR/bmad-doc/tao_examples/fodo/tao.init -lat /Users/klauer/Repos/pytao/docs/examples/fodo10.bmad -noplot causes error: ERROR detected: [ERROR | 2024-JUN-27 10:40:04] twiss_from_mat6:
    BAD 1-TURN MATRIX: UNSTABLE.
    TWISS PARAMETERS NOT COMPUTED
[ERROR | 2024-JUN-27 10:40:04] twiss_from_mat6:
    BAD 1-TURN MATRIX: UNSTABLE.
    TWISS PARAMETERS NOT COMPUTED
[ERROR | 2024-JUN-27 10:40:04] tao_set_invalid:
    UNSTABLE 1-TURN MATRIX
    FOR DATUM: fodo.betas[1] with data_type: beta.a
[ERROR | 2024-JUN-27 10:40:04] tao_set_invalid:
    UNSTABLE 1-TURN MATRIX
    FOR DATUM: fodo.betas[2] with data_type: beta.b

I think this is unrelated to those changes, but you should probably take a look @ChristopherMayes

image
ChristopherMayes commented 4 days ago

I have a fix for that. Also, I'm running into https://github.com/bmad-sim/bmad-ecosystem/issues/1033