Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved error handling #33

Open
aoeftiger opened this issue Oct 22, 2019 · 0 comments
Open

improved error handling #33

aoeftiger opened this issue Oct 22, 2019 · 0 comments

Comments

@aoeftiger
Copy link
Contributor

To be improved before merging:

  1. integrate error handling for PySixTrack already into loader_madx functionality -- by reading out errors via new cpymad functionality, e.g.:
>>> seq = madx.sequence.XYZ
>>> multipole = seq.expanded_elements[0]
>>> multipole.align_errors
AlignError(dx=-2.1754812916408347e-05, dy=-6.556356908596416e-06, 
ds=0.0, dphi=0.0, dtheta=0.0, dpsi=0.0, mrex=0.0, mrey=0.0, mredx=0.0, 
mredy=0.0, arex=0.0, arey=0.0, mscalx=0.0, mscaly=0.0)

>>> multipole.field_errors.dkn
[0.0,
 1.1472076071601915e-06,
 5.002980147857331e-06,
 0.013090083041168831,
 -0.19713806015162913,
 -73.91912412030126,
 -9.796705181638819,
 0.0,
(...)
 0.0]
  1. possibly remove current approach with error table read out (more cumbersome approach, bloated functionality in PySixTrack)

Originally posted by @aoeftiger in #28 (comment)

rdemaria referenced this issue in SixTrack/pysixtrack Dec 10, 2019
From Riccardo (looks heavy)
aoeftiger pushed a commit to aoeftiger/pysixtrack that referenced this issue Dec 20, 2019
Remove mad_points from spacecharge helper functions since unused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant