-
Notifications
You must be signed in to change notification settings - Fork 339
HS: hypersphere workflow + reproducible artifacts #642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
viral-satan
wants to merge
31
commits into
lesgourg:master
Choose a base branch
from
viral-satan:feature/hypersphere-geometry
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
HS: hypersphere workflow + reproducible artifacts #642
viral-satan
wants to merge
31
commits into
lesgourg:master
from
viral-satan:feature/hypersphere-geometry
Conversation
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
…lder, Theta; D_M/D_A/D_L wrappers)
Author
|
HS run status (macOS / Apple clang / Python 3.9.6):
No NaNs/Infs detected via |
Author
|
HS: hypersphere workflow run (macOS, Apple clang, Python 3.9.6) Artifacts produced:
Verification:
Bundle:
|
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.
HS: hypersphere workflow + reproducible artifacts
This PR adds a small, self-contained “hypersphere (HS)” workflow on top of vanilla CLASS to generate paper-ready summary tables and bundled artifacts in a fully reproducible way. It also introduces an optional S³ distance mapping (guarded by parameters), without changing default vanilla behavior.
What’s included
New make targets (developer UX)
make hs-run-all → one-shot run; writes:
hs_cmb_summary.tsv (z*, r_s, D_M(z*), θ*, ℓ*, and drag-epoch z_d, r_d, θ_d, ℓ_d)
hs_bao_summary.tsv (D_M, D_A, H, D_V, D_H, F_AP + ratios D_M/r_d, D_V/r_d, D_A/r_d, D_H/r_d)
hs_distances.tsv (dense grid: z, χ, D_M, D_A, H)
hs_distances_plus.tsv (adds D_L, E(z)=H/H₀, and distance modulus μ)
hs_summary.csv (consolidated table for the paper)
hs_meta.txt (rev/date/compiler/python metadata)
hs_artifacts.zip (bundle of the above)
make hs-cls-all → parses CLASS C_ℓ output and exports TSVs:
hs_cls_TT.tsv, hs_cls_EE.tsv, hs_cls_TE.tsv, hs_cls_BB.tsv
Derived D_ℓ = ℓ(ℓ+1) C_ℓ / 2π: hs_cls_TT_Dl.tsv, hs_cls_EE_Dl.tsv, hs_cls_TE_Dl.tsv
Zipped as hs_cls_artifacts.zip
make hs-publish → composes a timestamped bundle:
hs_artifacts__.zip containing hs_artifacts.zip, hs_cls_artifacts.zip, hs_meta.txt, README-HS.md
Helper targets: hs-summary, hs-dist-plus, hs-bundle, hs-verify, hs-release (wiring for CI/packaging)
Code changes (scoped & guarded)
Adds HS fields to background and parser hooks (INI params), defaulting to no-op on master.
Implements S³-mapped distances with guardrails (e.g., θ(z) = (τ₀ − τ(z))/R₀, D_M protection near π).
CMB/BAO summaries emitted before free, so they’re always captured.
All Python invocations routed via $(PYTHON) (defaults to python3), improving portability.
Scripts
scripts/hs_run.sh (repro runner)
scripts/hs_dist_plus.sh (derives D_L, E(z), μ from hs_distances.tsv)
scripts/hs_cls_tsv.sh (robust parsing of CLASS spectra to TSV + D_ℓ)
Docs
README-HS.md (two-line quickstart for the HS workflow)