Skip to content

refactor: replace YAML config with explicit Python defaults in searches#2

Merged
Jammy2211 merged 1 commit intomainfrom
feature/search-update-refactor
Apr 13, 2026
Merged

refactor: replace YAML config with explicit Python defaults in searches#2
Jammy2211 merged 1 commit intomainfrom
feature/search-update-refactor

Conversation

@Jammy2211
Copy link
Copy Markdown
Owner

Summary

Test plan

  • All 4 modified files import without error
  • PySwarmsGlobal, PySwarmsLocal, UltraNest instantiate with correct defaults
  • searches/pyswarms/example.py runs successfully
  • searches/ultranest/example.py runs successfully (full fit + log evidence output)

🤖 Generated with Claude Code

…ace searches

Align PySwarms and UltraNest workspace search scripts with PyAutoFit
PR #1202, which removed config_dict_search, config_dict_run, _config(),
config_type, and config_dict_test_mode_from in favour of explicit
__init__ parameters.

- PySwarms: add n_particles, cognitive, social, inertia, iters as
  explicit params; replace config dict refs with instance attrs;
  simplify FitnessPySwarms.__call__ to delegate to call_wrap;
  add paths=self.paths to fitness constructor
- UltraNest: add ~35 explicit search/run/stepsampler params; replace
  config_dict_search/config_dict_run with search_kwargs/run_kwargs
  properties; remove config_dict_stepsampler (used deleted config_type)
- Both: replace config_dict_test_mode_from with apply_test_mode;
  add silence param; default number_of_cores=1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 3d6cbde into main Apr 13, 2026
@Jammy2211 Jammy2211 deleted the feature/search-update-refactor branch April 13, 2026 11:08
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