Skip to content

fix(solver): restore the reject condition broken by 1105122 - #164

Merged
ocayon merged 1 commit into
mainfrom
fix/solver-syntax-error
Oct 8, 2026
Merged

ocayon merged 1 commit into
mainfrom
fix/solver-syntax-error

Conversation

@ocayon

@ocayon ocayon commented Oct 8, 2026

Copy link
Copy Markdown
Member

1105122 (Copilot Autofix, "Refactor ratio and gate condition") replaced five lines with one: it kept the new ratio expression but deleted the crossed_gate assignment and the opening if not finite(trial) or ( with its condition, leaving a bare ): at Solver.py:1447. Every import VSM on main raised SyntaxError: unmatched ')', so every fresh install of a package that depends on VSM@main (AWETrim) failed.

Restores the condition and keeps the autofix's intended change: a trial with exactly zero residual now has ratio = inf (accepted) instead of 0 (rejected).

…ror)

1105122 (Copilot Autofix, "Refactor ratio and gate condition") replaced
five lines with one: it kept the new ratio expression but deleted the
crossed_gate assignment and the opening `if not finite(trial) or (` with its
condition, leaving a bare `):` at Solver.py:1447. Every `import VSM` on main
raised SyntaxError: unmatched ')', so every fresh install of a package that
depends on VSM@main (AWETrim) failed.

Restores the condition and keeps the autofix's intended change: a trial with
exactly zero residual now has ratio = inf (accepted) instead of 0 (rejected).
Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:52
@ocayon ocayon closed this Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ocayon ocayon reopened this Oct 8, 2026
@ocayon
ocayon merged commit 716eb8d into main Oct 8, 2026
0 of 2 checks passed
@ocayon
ocayon deleted the fix/solver-syntax-error branch October 8, 2026 12:52
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