Skip to content

BUGFIX: Operations on "time aware" vectors were being performed even if they were empty.#88

Open
VitorSouzaLNLS wants to merge 2 commits intomasterfrom
fix-update_time_aware_info-function
Open

BUGFIX: Operations on "time aware" vectors were being performed even if they were empty.#88
VitorSouzaLNLS wants to merge 2 commits intomasterfrom
fix-update_time_aware_info-function

Conversation

@VitorSouzaLNLS
Copy link
Copy Markdown
Contributor

@VitorSouzaLNLS VitorSouzaLNLS commented Mar 27, 2026

In the new accelerator's function update_time_aware_info the operation time_aware_displacements.back() += line_length - cum_length was being performed (or trying to be performed) even if the vector was empty, as in cases like transport lines with no time-aware element.

Thanks to @otavio-silveira and @HenriqueWS11 for our discussion about "twiss matching" that led us to find out this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants