Skip to content

fix(gui): stop affineAlign when fewer than three traces selected#107

Open
dustenhubbard wants to merge 1 commit into
mainfrom
fix/affine-align-early-return
Open

fix(gui): stop affineAlign when fewer than three traces selected#107
dustenhubbard wants to merge 1 commit into
mainfrom
fix/affine-align-early-return

Conversation

@dustenhubbard

Copy link
Copy Markdown
Member

affineAlign showed the "select 3 or more traces" notification but did not return, so it fell through into the alignment code with an invalid selection. With equal counts under three this silently applied a bogus or NaN transform to the section and saved it, and with nothing selected it raised an unhandled IndexError. This adds the missing return after the notification so the guard stops execution.

Closes #106.

The too-few-traces guard showed the "select 3 or more traces"
notification but did not return, so execution fell through into the
alignment code with an invalid selection. With equal counts under
three this silently applied a bogus (or NaN) transform to the section
and saved it; with nothing selected it raised an unhandled IndexError.
Return after the notification so the guard stops execution.
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.

affineAlign continues after "select 3 or more traces" guard (missing return)

1 participant