Skip to content

fix(cluster): keep cluster viz grid full-extent under PYAUTO_SMALL_DATASETS=1 - #109

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/grid-respect-small-datasets
May 20, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/grid-respect-small-datasets

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Pass respect_small_datasets=False to the viz_grid construction in scripts/cluster/visualization.py. The cluster's tangential critical curve falls at ~30-50" radius; the global PYAUTO_SMALL_DATASETS=1 shrink would collapse the 100"x100" grid to (15, 15) @ 0.6" (~8" extent), placing the entire grid inside the curve and silently breaking the tangential_curves recovered >= 1 assertion.

Triaged originally as a simulator regression / LensCalc multi-plane plumbing bug (Cluster H); verification on clean main showed both diagnoses were wrong. The actual fix is two library kwargs (already shipped) and this one-line script opt-out.

Scripts Changed

  • scripts/cluster/visualization.py — viz_grid passes respect_small_datasets=False plus a one-line comment explaining the constraint. No other change.

Upstream PR

Test Plan

  • Cluster smoke test: env PYAUTO_TEST_MODE=2 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 JAX_ENABLE_X64=True python3 scripts/cluster/visualization.py recovers tangential_curves recovered: 1 OK and prints All visualization assertions passed.
  • scripts/cluster/simulator.py still passes under the same env (sanity).

🤖 Generated with Claude Code

…TASETS=1

The cluster host's tangential critical curve sits at ~30-50"; the smoke-mode
shrink (15x15 @ 0.6") would place it outside the visualization grid,
silently breaking the assertion. Opt out via the new respect_small_datasets
kwarg on Grid2D.uniform.
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 20, 2026
@Jammy2211
Jammy2211 merged commit e487140 into main May 20, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/grid-respect-small-datasets branch May 20, 2026 18:43
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

1 participant