Skip to content

Element Selection Syntax #1088

@ax3l

Description

@ax3l

With the introduction of loading purely element layouts without any tracking details of a lattice from PALS #1066, it becomes timely to introduce a lattice element query/selection syntax/API (in Python).

With such a syntax, we can create read/write views into the lattice to manipulate properties like element model approximately to use (linear/paraxial/exact), modeling of collective effects, and numerical parameters.

Many other coded have this feature, and typical afe queries by kind of the element, regex by name, etc.

Examples:

  • PyAT: position, name, type, boolean masks, read/write views into sub-sections or element attributes, ...
  • Cheetah (limited to names?)
  • ... many more

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions