Repository navigation
Description
Overview
scripts/plot/nautilus_plotter.py fails under PyAutoHeart's release profile (PYAUTO_TEST_MODE=1): Nautilus test mode stops after the initial batch with one non-zero weight (ESS = 1), so the script's range=0.999 collapses corner's range to a sliver and it raises ValueError: ... 'range' is not valid or the sample is empty (run 33177898708, job integrate / run_scripts (3.12, autofit, plot)). PyAutoFit#1542 makes corner_cornerpy skip (logged) on such a sample instead of crashing, but the example should render a real corner plot. The human decided against raising the global test-mode budget in PyAutoFit (it would slow every release-wave search).
Plan
- Declare
ENV: real_searchin the script's__Env__section so the release runner releasesPYAUTO_TEST_MODEfor this one script. - Pass an explicit
n_like_maxtoaf.Nautilus, as other workspace examples do, calibrated to the smallest cap that yields a real posterior (corner rendered, ESS > parameter count) in a few seconds. - Regenerate the notebook per the workspace convention; verify under
profile_release.yamlwithoutput/wiped.
Detailed implementation plan
Affected Repositories
- autofit_workspace (primary)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./autofit_workspace | main | clean |
Suggested branch: feature/nautilus-plotter-real-search-cap
Implementation Steps
scripts/plot/nautilus_plotter.py: append an__Env__ (Developer Only)section withENV: real_searchinside the final docstring (form perPyAutoHands/autohands/env_config.py); addn_like_max=<N>toaf.Nautilus(...)with a one-line comment.- Calibrate N ∈ {300, 500, 1000}: run under the release profile env (now with
PYAUTO_TEST_MODEreleased) withoutput/wiped each time; pick the smallest N that renders the corner (noskipping corner plotlog line) — report calls/ESS/time. - Regenerate
notebooks/plot/nautilus_plotter.ipynbper the workspace's generation convention. - Verify
emcee_plotter.pystill passes under the release profile (unchanged).
Key Files
scripts/plot/nautilus_plotter.pynotebooks/plot/nautilus_plotter.ipynb(generated)
Original Prompt
Click to expand starting prompt
Human decision on PyAutoFit#1542: "I dont want the TEST mode globally to be increased, that will slow down everything. Can we make it so these scripts dont use test mode and use the n_like_max input that other scripts use in order to enforce a custom number of capped samples?"
Activity
Jammy2211 commentedon Aug 28, 2026
Workspace PR created: #150 (pending-release; library-first gate on PyAutoFit#1542). Merge is a human decision.
Jammy2211 commentedon Aug 28, 2026
Shipped
Merged: #150 (MERGED 2026-08-28), behind the library-first gate on PyAutoLabs/PyAutoFit#1542 (merged first).
scripts/plot/nautilus_plotter.pynow declaresENV: real_searchin its__Env__ (Developer Only)section — the runner releasesPYAUTO_TEST_MODEfor this one script — and caps the search withn_like_max=3000. A plot example needs a real posterior, and the human declined raising the global test-mode budget in PyAutoFit.Calibration under
profile_release.yamlwithoutput/wiped: 300 / 500 / 1000 calls still crash (N_eff = 1, Nautilus still exploring); 2000 renders no corner (N_eff = 3); 2500 renders atN_eff13–20; 3000 givesN_eff357–527 in 22–26 s, 3/3 stable; natural finish is 3500 calls / 35 s.emcee_plotter.pystill runs under test mode (control, exit 0), and env resolution was checked directly:PYAUTO_TEST_MODEabsent for this script, still1for its siblings.scripts/plot/nautilus_plotter.py—n_like_max=3000,ENV: real_searchnotebooks/plot/nautilus_plotter.ipynb— regeneratedRecord:
PyAutoMind/complete/2026/08/nautilus-plotter-real-search-cap.md(library half:complete/2026/08/nautilus-test-mode-degenerate-corner.md)