forked from ax3l/pydantic-mad
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
element kindsbeamline elements & segments/linesbeamline elements & segments/lines
Description
While we add more structure to PALS files (pals-project/pals#152 pals-project/pals#153), I suggest we move the load/store logic into official PALS APIs.
What I mean is, simple file load/save logic like this:
https://github.com/BLAST-ImpactX/impactx/blob/25.12/src/python/impactx/extensions/KnownElementsList.py#L30-L51
Could be free functions in PALS Python. That way, we can add logic and selectors on top of the pure Pydantic logic that we implemented so far here.
Alternatively, we can also implement this as methods on Beamline.
Metadata
Metadata
Assignees
Labels
element kindsbeamline elements & segments/linesbeamline elements & segments/lines