Skip to content

fix: expand bypass-mode fake samples - #1314

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-fake-sample-count
Jun 8, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-fake-sample-count

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Expands bypass-mode fake samples from two to four deterministic samples so downstream latent-variable checks can exercise multi-batch sample handling in PYAUTO_TEST_MODE=2/3 without running a real sampler.

API Changes

PYAUTO_TEST_MODE=2/3 bypass results now include four deterministic fake samples instead of two. No public signatures changed.
See full details below.

Test Plan

  • NUMBA_CACHE_DIR=/tmp/numba_cache MPLCONFIGDIR=/tmp/matplotlib python -m pytest test_autofit/non_linear/search/test_abstract_search.py -q
  • NUMBA_CACHE_DIR=/tmp/numba_cache MPLCONFIGDIR=/tmp/matplotlib python -m pytest -q
  • PYAUTO_TEST_MODE=2 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 JAX_ENABLE_X64=True python scripts/features/latent_nan_robustness.py in autofit_workspace_test
  • PYAUTO_TEST_MODE=2 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 JAX_ENABLE_X64=True python scripts/latent/latent_nan_robustness.py in autogalaxy_workspace_test
  • PYAUTO_TEST_MODE=2 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 JAX_ENABLE_X64=True python scripts/latent/latent_nan_robustness.py in autolens_workspace_test
Full API Changes (for automation & release notes)

Removed

  • None

Added

  • None

Renamed

  • None

Changed Signature

  • None

Changed Behaviour

  • autofit.non_linear.search.abstract_search.NonLinearSearch._build_fake_samples(...) now returns four deterministic samples instead of two for bypass-mode search results. This keeps bypass mode cheap while allowing downstream consumers to test multi-batch sample handling.

Migration

  • None

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jun 8, 2026
@Jammy2211
Jammy2211 merged commit 2e41016 into main Jun 8, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/test-mode-fake-sample-count branch June 8, 2026 20:18
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 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