Repository navigation
Fix Windows CI: keep the Isosurface surface dropdown's options without PySCF - #168
Merged
Merged
Conversation
The VA.2/VW.7 resolution in #164 cut the Isosurface "Surface" dropdown down to "orbital" when PySCF is missing. The Windows CI job runs without PySCF, and three TestAppSurfaceDispatch tests (which mock cube generation) set it to density / ESP / spin -> TraitError "Invalid selection", failing main's CI since the #164 merge (runs 465-468; every Linux job, lint and mypy were green). Pin the surface kind by hiding the dropdown at "orbital" instead of removing options, so users still cannot pick density/ESP without PySCF and the widget has one shape everywhere. Reproduced locally by patching quantui.engines.is_pyscf_available to False: 3 failed before, 62 passed after (test_surfaces, test_viewer_audit, test_app_viewer, test_frontier_cubes); with PySCF 84 passed. Contributions: - Claude (Opus 5.5): code edits, review, and conceptual discussion - Jonathan Schultz: overall vision, planning, review, and orchestration Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main's CI has been red since the #164 merge (runs 465–468). The cause is my own resolution of VA.2 against VW.7 in #164.What failed. Only the Windows "Run non-PySCF tests" job. All three Linux jobs (Python 3.9/3.10/3.11), lint, mypy and the PyFock job were green. Three tests failed, all with
TraitError: Invalid selection:test_surface_change_resets_isovalue_and_controlstest_esp_mode_generates_two_cubes_and_sets_rangetest_spin_density_refused_for_closed_shellWhy.
main.The fix. Pin the surface kind by hiding the dropdown at "orbital" instead of removing its options.
test_viewer_audit.pynow asserts "hidden at orbital" instead of "options == [orbital]".Testing
quantui.engines.is_pyscf_available()return False, which mirrors the Windows job:test_surfaces,test_viewer_audit,test_app_viewer,test_frontier_cubes).test_surfaces_matrix).Authorship
Generated by Claude Code