Skip to content

Handle nonpositive SWIFT selection errors#78

Open
vvv214 wants to merge 1 commit into
google:mainfrom
vvv214:codex/fix-swift-nonpositive-errors
Open

Handle nonpositive SWIFT selection errors#78
vvv214 wants to merge 1 commit into
google:mainfrom
vvv214:codex/fix-swift-nonpositive-errors

Conversation

@vvv214

@vvv214 vvv214 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fix SWIFT's shared query selector so it keeps a valid clique tree even when all supported candidate scores are nonpositive.\n\nThis covers both call paths:\n- in-memory SWIFT: SWIFTMechanism.__call__ -> select_queries(...)\n- pipeline SWIFT: pipeline_transformations.swift.fit_model -> select_queries(...)\n\nValidation: pytest tests/discrete_mechanisms/swift_test.py::SWIFTTest::test_select_queries tests/discrete_mechanisms/swift_test.py::SWIFTTest::test_select_queries_nonpositive_errors -q passed.

@vvv214 vvv214 marked this pull request as ready for review July 3, 2026 07:11
@vvv214 vvv214 marked this pull request as draft July 3, 2026 07:11
@vvv214 vvv214 marked this pull request as ready for review July 3, 2026 07:20
@ryan112358

Copy link
Copy Markdown
Collaborator

What's the issue this is fixing?

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