Skip to content

Fix Windows CI: keep the Isosurface surface dropdown's options without PySCF - #168

Merged
jonathanschultzNU merged 1 commit into
mainfrom
claude/vigilant-einstein-grcjni-ci-fix
Nov 8, 2026
Merged

jonathanschultzNU merged 1 commit into
mainfrom
claude/vigilant-einstein-grcjni-ci-fix

Conversation

@NCCU-Schultz-Lab

Copy link
Copy Markdown
Collaborator

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_controls
  • test_esp_mode_generates_two_cubes_and_sets_range
  • test_spin_density_refused_for_closed_shell

Why.

The fix. Pin the surface kind by hiding the dropdown at "orbital" instead of removing its options.

  • Users without PySCF still can't choose density or ESP, so the Viewer's behaviour is unchanged.
  • The widget now has the same shape with or without PySCF.
  • test_viewer_audit.py now asserts "hidden at orbital" instead of "options == [orbital]".

Testing

  • Reproduced with a small pytest plugin that makes quantui.engines.is_pyscf_available() return False, which mirrors the Windows job:
    • before: the same 3 failures;
    • after: 62 passed (test_surfaces, test_viewer_audit, test_app_viewer, test_frontier_cubes).
  • With PySCF: 84 passed (the same files plus test_surfaces_matrix).
  • pre-commit: clean.

Authorship

  • Claude (Opus 5.5): code edits, review, and conceptual discussion
  • Jonathan Schultz: overall vision, planning, review, and orchestration

Generated by Claude Code

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>
@jonathanschultzNU
jonathanschultzNU merged commit 8f8444d into main Nov 8, 2026
6 checks passed
@jonathanschultzNU
jonathanschultzNU deleted the claude/vigilant-einstein-grcjni-ci-fix branch November 8, 2026 15:07
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