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

Python: Mixin Elements Submodule #786

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jan 7, 2025

Move the mixin elements (non-physical, mostly helper methods and attributes) to impactx.elements.mixin to avoid that they are listed by default and, e.g., picked up in the GUI as physical elements.

@ax3l ax3l added component: elements Elements/external fields component: python Python bindings labels Jan 7, 2025
@ax3l ax3l requested review from cemitch99 and proy30 January 7, 2025 19:06
Move the mixin elements (non-physical, mostly helper methods
and attributes) to `impactx.elements.mixin` to avoid that they
are listed by default and, e.g., picked up in the GUI as physical
elements.
@ax3l ax3l force-pushed the topic-py-mixin-submodule branch from 8180bba to 3f68b42 Compare January 7, 2025 19:07
"Mixin classes for accelerator lattice elements in ImpactX"
);

py::class_<elements::Named>(mx, "Named")
Copy link
Member Author

@ax3l ax3l Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@proy30 just FYI: the mixin classes (Named, Thick, Thin, Alignment) should not be selectable as "physical elements" in the accelerator lattice by the user in the GUI. This change should do that automatically now.

@ax3l ax3l enabled auto-merge (squash) January 7, 2025 19:22
@ax3l ax3l merged commit 500c45a into ECP-WarpX:development Jan 7, 2025
16 checks passed
@ax3l ax3l deleted the topic-py-mixin-submodule branch January 9, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: elements Elements/external fields component: python Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants