Remove UltraNest and PySwarms, clean up search tests#1191
Merged
Jammy2211 merged 1 commit intomain_buildfrom Apr 9, 2026
Merged
Remove UltraNest and PySwarms, clean up search tests#1191Jammy2211 merged 1 commit intomain_buildfrom
Jammy2211 merged 1 commit intomain_buildfrom
Conversation
Remove UltraNest and PySwarms from the non-linear search package to simplify the codebase. Both implementations are preserved in the new autofit_workspace_developer repo with runnable examples. - Delete ultranest/ and pyswarms/ source directories - Remove imports, dependencies, configs, docs, and citations - Fix Nautilus docstrings that incorrectly referenced UltraNest - Add Nautilus config loading tests (previously untested) - Expand abstract search test coverage Closes #1190 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main_build #1191 +/- ##
=============================================
Coverage ? 80.23%
=============================================
Files ? 202
Lines ? 15787
Branches ? 0
=============================================
Hits ? 12666
Misses ? 3121
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Apr 9, 2026
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove UltraNest and PySwarms search implementations from PyAutoFit to simplify the codebase and reduce dependencies. Both are archived in the new autofit_workspace_developer repo with runnable examples. Also adds Nautilus test coverage, expands abstract search tests, and fixes Nautilus copy-paste docstring bugs.
Closes #1190
API Changes
Three public symbols removed from the
autofitnamespace:af.UltraNest— useautofit_workspace_developer/searches/ultranest/if neededaf.PySwarmsGlobal— useautofit_workspace_developer/searches/pyswarms/if neededaf.PySwarmsLocal— useautofit_workspace_developer/searches/pyswarms/if neededOne hard dependency removed:
pyswarms==1.3.0no longer required at install time.One optional dependency removed:
ultranest==4.3.2.See full details below.
Test Plan
pytest test_autofit/)python -c "import autofit as af"succeedsaf.UltraNest,af.PySwarmsGlobal,af.PySwarmsLocalraiseAttributeErrorgrep -ri "ultranest\|pyswarms" autofit/ test_autofit/returns zero matchesFull API Changes (for automation & release notes)
Removed
autofit.UltraNest— UltraNest nested sampling search classautofit.PySwarmsGlobal— PySwarms global-best particle swarm optimizerautofit.PySwarmsLocal— PySwarms local-best particle swarm optimizerpyswarms==1.3.0from[project.dependencies]ultranest==4.3.2from[project.optional-dependencies]UltraNestfromnest.yaml,PySwarmsGlobal/PySwarmsLocalfrommle.yamlAdded
test_autofit/non_linear/search/nest/test_nautilus.py— 3 new Nautilus config teststest_abstract_search.py— config dict access, unique_tag, path_prefix, identifier fieldsChanged Behaviour
autofit/non_linear/search/nest/nautilus/search.py— fixed docstrings that incorrectly referenced "ultranest"docs/features/interpolate.rst— fixed URL that pointed to UltraNest docs instead of DynestyMigration
search = af.UltraNest(min_num_live_points=400)search = af.DynestyStatic(nlive=400)orsearch = af.Nautilus(n_live=400)autofit_workspace_developerrepo🤖 Generated with Claude Code