Skip to content

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

Merged
VitorSouzaLNLS merged 3 commits into
masterfrom
fix-update_time_aware_info-function
Apr 9, 2026
Merged

BUGFIX: Operations on "time aware" vectors were being performed even if they were empty.#88
VitorSouzaLNLS merged 3 commits into
masterfrom
fix-update_time_aware_info-function

Conversation

@VitorSouzaLNLS

@VitorSouzaLNLS VitorSouzaLNLS commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

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.

Comment thread src/accelerator.cpp Outdated
@fernandohds564

fernandohds564 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@VitorSouzaLNLS, remember to change the version before merging. I also think you can create a release (talk to @xresende or @anacso17 for help) and edit the version in the new deploy PR at lnls-ansible repository, once that PR is created.

@VitorSouzaLNLS
VitorSouzaLNLS merged commit 4e09dc1 into master Apr 9, 2026
2 checks passed
@VitorSouzaLNLS
VitorSouzaLNLS deleted the fix-update_time_aware_info-function branch April 9, 2026 17:50
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.

6 participants