Proposal for main pyaml structure #9
Replies: 3 comments 58 replies
-
Dear @JeanLucPons, I like the simple usage! It looks very similar to the User interface specification indeed! "root folder" could be part of the configuration file? For the array names, should some arrays names be compulsory? for example Quadrupoles, Sextupoles, Dipoles, HorSteerers, VerSteerers, SkewQuadrupoles, CTs, BPMs, BLMs, etc... (The list is in the Spec document). In order to keep the configuration scalable, we could default the above compulsory arrays to be empty and if defined fill them with the user definition given in the configuration file. pyaml is becoming real very fast! |
Beta Was this translation helpful? Give feedback.
-
Dear @JeanLucPons, In my opinion, I think we can add the energy to the configuration file as a configuration of pyaml.lattice.simulator. It will be useful in my opinion when we will use pyaml for boosters. It may be also useful for machines that may modify their dipoles or that could measure precisely their energy, the new gradients will recompute for the correct energy, as specified in the configuration file. In the pyaml simulator code after loading the lattice we will issue an atsetenergy to make sure the value of the configuration file is used. |
Beta Was this translation helpful? Give feedback.
-
I think it would be nice if we could list what is static config data and what is dynamic config data. If we have that it might be easier to figure out how to load the different parts? For me it feels like the most elegant solution would be one where the static data is only loaded once and the dynamic data is more like an update like @simoneliuzzo suggested. I think @Sulimankhail probably has ideas for how that could be implemented because we have the exact same issue with different operational modes in our twin and have discussed static vs dynamic config before and how to deal with it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my implementation for the top level structure:
Associated with its pydantic schema:
Usage:
It is rather close to the original spec done by @simoneliuzzo.
Any tips, comments are welcome.
Beta Was this translation helpful? Give feedback.
All reactions