Skip to content

Conversation

EZoni
Copy link
Member

@EZoni EZoni commented Oct 15, 2025

Skip the Element suffix for common elements such as drifts, quadrupoles, etc., and close #27.

@EZoni EZoni requested a review from ax3l October 15, 2025 18:07
@EZoni EZoni added the breaking label Oct 15, 2025
Comment on lines 4 to 5
from pals_schema.BaseElement import BaseElement
from pals_schema.ThickElement import ThickElement
Copy link
Member Author

Choose a reason for hiding this comment

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

@ax3l

I kept the Element suffix for the base element class and the thick element class, because naming them simply Base and Thick sounds a bit odd to me, but let me know if you want to rename those as well.

Copy link
Member

Choose a reason for hiding this comment

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

yes, that is perfect for the mixin/base classes 👍

@ax3l ax3l self-assigned this Oct 15, 2025
Comment on lines +10 to +11
from pals_schema.Drift import Drift
from pals_schema.Quadrupole import Quadrupole
Copy link
Member

Choose a reason for hiding this comment

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

Perfect, thank you!

In a follow-up PR, can you please check if we want to write simply

from pals import Drift, Quadrupole, Beamline

If empty/specific __init__.py files are missing we can add them.

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Excellent 👍

@ax3l ax3l merged commit 99b1c48 into campa-consortium:main Oct 15, 2025
11 checks passed
@EZoni EZoni deleted the skip_element_suffix branch October 15, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip Element Suffix

2 participants