Skip to content

fix: search kwarg typos in Emcee/Zeus; drop Drawer NullPaths workaround - #112

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/search-ext-kwarg-typos
Oct 15, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/search-ext-kwarg-typos

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • scripts/searches/Emcee.py, Zeus.py: auto_correlations_settings= → auto_correlation_settings=. The old spelling was silently ignored, and since A0b (refactor: search hygiene and dead code (search-extensibility A0b) PyAutoFit#1672, released) it logs an unknown-keyword WARNING. The values match the defaults, so results don't change.
  • scripts/searches/DynestyDynamic.py: nlive=50 → nlive_init=50; DynestyDynamic takes nlive_init, so nlive was ignored. Outside test mode both fits now really use 50 initial live points instead of the 500 default (faster, less accurate full runs).
  • scripts/searches/Drawer.py: removed the workaround that ran Drawer with name/path_prefix because _fit read self.timer.time under NullPaths, and its comment. Released autofit guards this (self.timer.time if self.timer else None), so Drawer now runs with NullPaths like the BFGS/SMC scripts.

Scripts Changed

  • scripts/searches/Emcee.py — auto_correlation_settings spelling
  • scripts/searches/Zeus.py — auto_correlation_settings spelling
  • scripts/searches/Drawer.py — NullPaths workaround and its comment removed
  • scripts/searches/DynestyDynamic.py — nlive=50 → nlive_init=50, in both DynestyDynamic calls (found in review)

Upstream PR

PyAutoLabs/PyAutoFit#1695 — library-first: merge that one before this PR.

Test Plan

Witness, PYAUTO_TEST_MODE=1 against released autofit 2026.10.12.1 (and again against the PyAutoFit main source):

  • searches/Emcee.py — before: Emcee received the unknown keyword argument 'auto_correlations_settings'; after: exit 0, unknown-keyword warnings: 0
  • searches/Zeus.py — before: Zeus received the unknown keyword argument 'auto_correlations_settings'; after: exit 0, unknown-keyword warnings: 0
  • searches/Drawer.py (NullPaths) — exit 0, unknown-keyword warnings: 0, Number of samples: 50, all assertions pass
  • searches/DynestyDynamic.py — before: DynestyDynamic received the unknown keyword argument 'nlive' (×2); after: exit 0, unknown-keyword warnings: 0

Validation checklist (--auto run — plan was not pre-approved)

  • Effective level: safe (header: safe, Consequence: judge)
  • Plan: on the issue (fix: search kwarg typos silently ignored in workspace scripts and a graphical test PyAutoFit#1693), written at start, unmodified since
  • Gate: tests n/a (workspace) · smoke: Emcee.py, which is in smoke_tests.txt, passes, and so do Zeus/Drawer/DynestyDynamic (run on demand) · review: one independent Opus round — in-scope diff correct; its finding (DynestyDynamic.py nlive) was fixed in this PR under a scope extension from the coordinator; the second short Opus round on that diff: CLEAN · Heart RED under the development-only override below
  • Human: plan sound in hindsight?
  • Human: diff matches plan (no scope creep)?
  • Human: merge, amend, or reject — then log the outcome

Heart RED — development-only override (quoted from #1693)

Heart at the door: Heart: RED — Release RED; monitoring RED · 10/100 · 415 unresolved; [red] release validation FAILED (stage integrate); [red] PyAutoHands/workflows/Python Version Matrix: failure; [red] PyAutoHeart/workflows/Release Integrate: failure; [red] PyAutoMind/workflows/Lifecycle Drift: failure (cleared 2026-10-15 evening); [red] PyAutoArray/Tests: red; [red] autofit_workspace_test/Smoke Tests: red; [red] autogalaxy_workspace_test/Smoke Tests: red; [red] autolens_workspace_test/Smoke Tests: red; [red] Release validation: NOT release_ready; [red] Worktree drift; [red] autolens_inference: red; [red] autolens_profiling: red; [red] euclid_strong_lens_modeling_pipeline: red. Live human in session 6ffb59e9 answered AskUserQuestion "Yes, override for development (Recommended)" on 2026-10-15 for this launch. Permitted: commit, push, PR-open. Merge is a separate human act; this never reaches a release.

🤖 Generated with Claude Code

auto_correlations_settings -> auto_correlation_settings. Drawer now runs
with NullPaths, which the released timer guard supports.

Refs PyAutoLabs/PyAutoFit#1693

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c.py

Refs PyAutoLabs/PyAutoFit#1693

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit e81faaf into main Oct 15, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/search-ext-kwarg-typos branch October 15, 2026 17:54
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