feat: PYAUTO_DISABLE_CRITICAL_CAUSTICS env var to skip curve computation#325
Merged
feat: PYAUTO_DISABLE_CRITICAL_CAUSTICS env var to skip curve computation#325
Conversation
…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>
This was referenced Apr 6, 2026
Collaborator
Author
|
Workspace PRs: PyAutoLabs/autolens_workspace#35, PyAutoLabs/autogalaxy_workspace#11 |
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
Add
PYAUTO_DISABLE_CRITICAL_CAUSTICS=1environment 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
PYAUTO_DISABLE_CRITICAL_CAUSTICS=1 PYAUTOFIT_TEST_MODE=2— completes without critical curve overlaysFull API Changes (for automation & release notes)
Added
PYAUTO_DISABLE_CRITICAL_CAUSTICS=1— when set,_critical_curves_from()and_caustics_from()inautogalaxy/plot/plot_utils.pyreturn empty lists instead of computing critical curves and causticsMigration
None — no existing code needs changes. The env var is opt-in.
🤖 Generated with Claude Code