From a7fdbcff0791e0b7d0219630453bdf0973bf9b0b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 10 Apr 2026 20:42:59 +0100 Subject: [PATCH] refactor: merge PYAUTO_DISABLE_CRITICAL_CAUSTICS into PYAUTO_FAST_PLOTS The critical-curve/caustic overlay skip in _caustics_from and _critical_curves_from now keys off PYAUTO_FAST_PLOTS instead of its own dedicated flag. In every workspace and release config the two flags were always set together for the same purpose (faster plots for smoke tests and release builds), so folding them into one flag removes a layer of duplication. Co-Authored-By: Claude Opus 4.6 --- autogalaxy/plot/plot_utils.py | 4 ++-- autogalaxy/util/plot_utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autogalaxy/plot/plot_utils.py b/autogalaxy/plot/plot_utils.py index 0e631ae0..55cfae95 100644 --- a/autogalaxy/plot/plot_utils.py +++ b/autogalaxy/plot/plot_utils.py @@ -376,7 +376,7 @@ def _caustics_from(mass_obj, grid): tuple[list, list] ``(tangential_caustics, radial_caustics)``. """ - if os.environ.get("PYAUTO_DISABLE_CRITICAL_CAUSTICS") == "1": + if os.environ.get("PYAUTO_FAST_PLOTS") == "1": return [], [] from autogalaxy.operate.lens_calc import LensCalc @@ -428,7 +428,7 @@ def _critical_curves_from(mass_obj, grid, tc=None, rc=None): """ from autogalaxy.operate.lens_calc import LensCalc - if os.environ.get("PYAUTO_DISABLE_CRITICAL_CAUSTICS") == "1": + if os.environ.get("PYAUTO_FAST_PLOTS") == "1": return [], [] if tc is None: diff --git a/autogalaxy/util/plot_utils.py b/autogalaxy/util/plot_utils.py index 0e631ae0..55cfae95 100644 --- a/autogalaxy/util/plot_utils.py +++ b/autogalaxy/util/plot_utils.py @@ -376,7 +376,7 @@ def _caustics_from(mass_obj, grid): tuple[list, list] ``(tangential_caustics, radial_caustics)``. """ - if os.environ.get("PYAUTO_DISABLE_CRITICAL_CAUSTICS") == "1": + if os.environ.get("PYAUTO_FAST_PLOTS") == "1": return [], [] from autogalaxy.operate.lens_calc import LensCalc @@ -428,7 +428,7 @@ def _critical_curves_from(mass_obj, grid, tc=None, rc=None): """ from autogalaxy.operate.lens_calc import LensCalc - if os.environ.get("PYAUTO_DISABLE_CRITICAL_CAUSTICS") == "1": + if os.environ.get("PYAUTO_FAST_PLOTS") == "1": return [], [] if tc is None: