Repository navigation
[WIP] tracker - #863
Merged
Merged
[WIP] tracker#863
Conversation
…ial correction back and update tests
…but now gives tracking error
…test straight vs curved for a1, b1, bs that should spot this type of bugs
Expose FieldExpansion field evaluation API
Move the FieldExpansion implementation out of the removed elements.py module and export its factory and concrete classes through beam_elements. Extend the public import checks. Upstream now builds kernels directly from classes, so the removed element initialization table is no longer needed.
Use one concrete element with C-level straight and curved dispatch, cache-aware coefficient updates, integrated strengths, and read-only geometry. Support environment operations, reject unsupported radiation and spin tracking, and update examples and regression tests. Add thick slices that share parent data and track their longitudinal interval. Preserve offsets when slicing again and cover tracking, backtracking, survey, and Twiss strengths.
giadarol
requested changes
Sep 24, 2026
Add zero-filled optional coefficients, common field scaling, and explicit uniform normal/skew strengths with cache-aware updates. Derive read-only profile order and allocation metadata from the coefficient arrays. Use integrator and num_integration_steps, remove the nstep alias, and update examples and environment expressions. Support standard magnet misalignments for elements and thick slices, clean serialization, and xobject wrapping. Include scalar contributions in Twiss strengths once. Update coverage for construction, scaling, lifecycle, misalignments, slicing, and strength extraction; remove obsolete radiation/spin guard tests. Validation: 164 tests passed, 4 skipped; example smoke checks passed.
3 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is built on top of #797
Checklist
Mandatory:
Optional: