Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

how to name reversed elements/sequences #14

Open
felix-andreas opened this issue Dec 16, 2020 · 1 comment
Open

how to name reversed elements/sequences #14

felix-andreas opened this issue Dec 16, 2020 · 1 comment

Comments

@felix-andreas
Copy link
Member

felix-andreas commented Dec 16, 2020

@MichaelMAB2020 @PaulGoslawski

At the moment i append "_reversed" if an element or sequence gets reversed. this raises the problem that names overlap in the twissplot.

image

Possible solutions:
just append

  • "_rev"
  • "_r"
  • "__r"
  • "r"

but this would make name conflicts more likely.

@MichaelMAB2020
Copy link

Would it be possible to combine any occurance of b_org,b_rev or b_rev,b_org in the final lattice definition into a combined element b:line(b_org,b_rev) or b:line(b_rev,b_org)? Either for the plot or maybe even for the whole lattice parsing?

Single reversed elements would still be a problem but I'd expect them to be used only in pairs ....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants