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

objectParameters #56

Open
JunCEEE opened this issue Mar 2, 2022 · 2 comments
Open

objectParameters #56

JunCEEE opened this issue Mar 2, 2022 · 2 comments

Comments

@JunCEEE
Copy link
Contributor

JunCEEE commented Mar 2, 2022

Do we need to create an objectParameter for more detailed exposure of wavefront propagation parameters?

@CFGrote
Copy link
Contributor

CFGrote commented Mar 2, 2022

@JunCEEE , can you elaborate a bit what you mean?

@JunCEEE
Copy link
Contributor Author

JunCEEE commented Mar 2, 2022

The beamline configuration for WPG cannot be fully exposed in SimEx-Lite in our current design since WPG requires parameters for each optics object (Aperture, Drift, CRL, ...).

To achieve that, something like the objectParameters here is needed:

lens1_parameters = Parameters(name = "lens1")
lens1_parameters.add("foc_dist")
lens1_parameters["foc_dist"] = 2

lens2_parameters = Parameters(name = "lens2")
lens2_parameters.add("foc_dist")
lens2_parameters["foc_dist"] = 12

object_params = objectParameters[lens1_parameters, lens2_parameters]

Actually, it's like the instrumentParameters, maybe we could make use of it directly? But to be honest, I don't like to do that at this moment, it's just like creating another layer on SRW.

@shervin86 shervin86 pinned this issue Apr 13, 2022
@CFGrote CFGrote unpinned this issue Feb 6, 2024
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

2 participants