Repository navigation
Offer several bilby versions, with a picker on the page - #1
Merged
Merged
Conversation
The page now offers bilby 2.8.2 (the default), 2.7.1, 2.6.0 and main, listed in bilby-versions.json (which replaces bilby-commit.txt). The picker in the header, or ?bilby=<name> in the URL, chooses one; switching restarts Python with that version and keeps the open example, with any edits. - scripts/fetch-bilby.sh builds a wheel and extracts the examples for each version (examples/<name>/) and writes examples/versions.json. - packages.lock.json locks the bilby group per version (2.6.0 needs dynesty 2.1.5); the other groups are resolved against every version, must agree, and are locked once. LALSuite, the PyPI wheels and the page are shared by all versions. - scripts/test-all.mjs and test-examples.mjs take --bilby; CI tests each version in its own job, and known failures can be listed per version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
The page now offers bilby 2.8.2 (the default), 2.7.1, 2.6.0 and main. Pick one with the picker in the header (on phones it's in the example drawer) or with
?bilby=<name>in the URL. Switching restarts Python with that version and keeps the open example, including any edits, so the same script can be run against two versions. An example that the new version doesn't have stays open, using its data files from the version it came from.How it works
bilby-versions.jsonreplacesbilby-commit.txt. Each version is pinned to a commit, and releases also name their tag, which the fetch script checks.scripts/fetch-bilby.sh --updatestill movesmain.scripts/fetch-bilby.shbuilds one wheel per version (cached in.cache/bilby-wheels/<commit>/), extracts and adaptsexamples/<name>/, and writesexamples/versions.jsonfor the page.packages.lock.jsonnow locks thebilbygroup once per version. 2.6.0 needsdynesty<2.2, so it pinsdynesty==2.1.5; the other versions keep 3.1.0. The extra groups (LALSuite, gwpy, …) are resolved against every version, must come out the same, and are locked once. The lock formainis unchanged.worker.js?v=…&bilby=…). The cache-busting?v=on shared files doesn't change between versions, so they are downloaded and cached once.Tests
scripts/test-all.mjstests every version by default, or one with--bilby <name>.tests/known-failures.jsonlists failures underallor under a version's name.bilby-versions.json. The Playwright smoke test runs withBILBY_VERSIONset and gains a test that switches versions with the picker.calibration_marginalization_example(reweighting always opens amultiprocessing.Pool).marginalized_likelihood(KeyError: 'time_jitter').multivariate_gaussian_priorfails on every version, so it moves toall.mainpassed 31, with every failure being a known one. In the browser I checked switching versions, keeping edits, the missing-example fallback and the phone layout. I haven't run the Playwright suite locally; CI runs it.Note
The default is now the latest release (2.8.2) rather than
main. Changedefaultinbilby-versions.jsonto go back.🤖 Generated with Claude Code