Skip to content

searches: preserve the NSS sampler for re-mainlining#20

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/remove-nss-sampler
Jul 11, 2026
Merged

searches: preserve the NSS sampler for re-mainlining#20
Jammy2211 merged 1 commit into
mainfrom
feature/remove-nss-sampler

Conversation

@Jammy2211

Copy link
Copy Markdown
Owner

Preserves the af.NSS nested slice sampler — removed from PyAutoFit in PyAutoLabs/PyAutoFit#1357 — so it can be re-mainlined cheaply once nss ships as a genuine PyPI package.

Part of PyAutoLabs/PyAutoFit#1356.

What's added — searches/nss/

Sits alongside the existing parked samplers (ultranest/, pyswarms/), same "previously bundled with PyAutoFit, kept as a drop-in" convention:

  • search.py / samples.py / _chunked_nss.py / _chunked_update.py — the sampler, with intra-package imports relativized so it imports both here (from searches.nss import NSS, verified) and verbatim if dropped back into the library.
  • tests/test_search.py + test_checkpoint.py, kept verbatim against the library import paths (incl. mock.patch targets), so they run unchanged when restored to test_autofit/…/nss/.
  • README.md — the reuse recipe: the pinned handley-lab/blackjax@ef45acd2 + yallup/nss@69159b0f SHAs, why it couldn't be a plain wheel extra, the use_jax=True requirement, kwarg defaults, and a step-by-step re-mainline checklist.
  • example.py — runnable usage demo.

Pure addition — imports nothing new into any shipped path; not wired into CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y9eyGoEAUHGSqcmJpzzjsi

Parks the af.NSS nested slice sampler (removed from PyAutoFit in #1356)
alongside the ultranest/pyswarms parked samplers. Module imports relativized
as a drop-in; tests kept verbatim against the library paths; README captures
the pinned blackjax/nss install recipe and a re-mainline checklist for when
nss ships on PyPI.

Issue: PyAutoFit#1356

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release Pending release label Jul 11, 2026
@Jammy2211
Jammy2211 merged commit 0ff07bd into main Jul 11, 2026
@Jammy2211
Jammy2211 deleted the feature/remove-nss-sampler branch July 11, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release Pending release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant