Skip to content

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

Merged
VitorSouzaLNLS merged 3 commits intomasterfrom
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 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.

@fernandohds564
Copy link
Copy Markdown
Contributor

fernandohds564 commented Apr 9, 2026

@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