We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccf2f36 + 8b1d8e2 commit b4c9868Copy full SHA for b4c9868
2 files changed
autoconf/__init__.py
@@ -9,6 +9,7 @@
9
from .json_prior.config import JSONPriorConfig
10
11
from .setup_colab import for_autolens
12
+from .test_mode import test_mode_level, is_test_mode
13
14
15
__version__ = "2026.4.5.3"
autoconf/test_mode.py
@@ -0,0 +1,20 @@
1
+import os
2
+
3
4
+def test_mode_level():
5
+ """
6
+ Return the current test mode level.
7
8
+ 0 = off (normal operation)
+ 1 = reduce sampler iterations to minimum (existing behavior)
+ 2 = bypass sampler entirely, call likelihood once
+ 3 = bypass sampler entirely, skip likelihood call
+ return int(os.environ.get("PYAUTOFIT_TEST_MODE", "0"))
16
+def is_test_mode():
17
18
+ Return True if any test mode is active.
19
20
+ return test_mode_level() > 0
0 commit comments