Skip to content

refactor: replace search YAML config with explicit Python defaults#1202

Merged
Jammy2211 merged 1 commit intomainfrom
feature/search-config-cleanup
Apr 12, 2026
Merged

refactor: replace search YAML config with explicit Python defaults#1202
Jammy2211 merged 1 commit intomainfrom
feature/search-config-cleanup

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Replace per-search YAML config files (nest.yaml, mcmc.yaml, mle.yaml) with explicit typed Python defaults in each search class's __init__
  • Remove all config machinery from the base class: config_dict_search, config_dict_run, config_type, _class_config, _config(), setattr() loop
  • Test mode now uses apply_test_mode() for direct attribute mutation instead of dict manipulation

Test plan

  • All 1205 tests pass (pytest test_autofit/)
  • Search tests verify explicit params and Python defaults
  • Identifier/serialization tests updated for new defaults
  • No downstream repos (PyAutoArray, PyAutoGalaxy, PyAutoLens) reference removed API
  • Workspace YAML config files to be cleaned up in follow-up PR

🤖 Generated with Claude Code

… classes

Remove per-search YAML config files (nest.yaml, mcmc.yaml, mle.yaml) and
the config machinery that loaded them (config_dict_search, config_dict_run,
config_type, _class_config, _config, setattr loop). All search parameters
are now explicit typed __init__ arguments with Python defaults on each
concrete search class (Nautilus, DynestyStatic, DynestyDynamic, Emcee,
Zeus, BFGS/LBFGS, Drawer). Test mode uses apply_test_mode() for direct
attribute mutation instead of dict manipulation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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