Skip to content

feat: PYAUTO_DISABLE_CRITICAL_CAUSTICS env var to skip curve computation#325

Merged
Jammy2211 merged 1 commit intomainfrom
feature/smoke-test-fast
Apr 6, 2026
Merged

feat: PYAUTO_DISABLE_CRITICAL_CAUSTICS env var to skip curve computation#325
Jammy2211 merged 1 commit intomainfrom
feature/smoke-test-fast

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Add PYAUTO_DISABLE_CRITICAL_CAUSTICS=1 environment variable that makes _critical_curves_from() and _caustics_from() early-return empty lists, skipping the expensive eigenvalue/contour computation used for plot overlays. This is used by smoke tests to avoid unnecessary plotting overhead.

API Changes

Added one environment variable: PYAUTO_DISABLE_CRITICAL_CAUSTICS=1. No changes to function signatures or public API. Existing behaviour is completely unchanged when the env var is not set.

Test Plan

  • PyAutoGalaxy unit tests pass (811 passed)
  • Run interferometer/modeling.py with PYAUTO_DISABLE_CRITICAL_CAUSTICS=1 PYAUTOFIT_TEST_MODE=2 — completes without critical curve overlays
  • Run without env var — original behaviour preserved
Full API Changes (for automation & release notes)

Added

  • Environment variable PYAUTO_DISABLE_CRITICAL_CAUSTICS=1 — when set, _critical_curves_from() and _caustics_from() in autogalaxy/plot/plot_utils.py return empty lists instead of computing critical curves and caustics

Migration

None — no existing code needs changes. The env var is opt-in.

🤖 Generated with Claude Code

…utation

When PYAUTO_DISABLE_CRITICAL_CAUSTICS=1, _critical_curves_from() and
_caustics_from() early-return empty lists, skipping the expensive
eigenvalue/contour computation. Used by smoke tests to avoid
unnecessary plotting overhead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211
Copy link
Copy Markdown
Collaborator Author

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