Move to camb 2 and refresh the lock - #362
Merged
Merged
Conversation
camb 2.0 makes its BBN Y_He predictor return a scalar, so set_cosmology works under scipy 1.18.0 (whose RectBivariateSpline returned shape (1,) for scalar input) and the scipy cap has no reason to exist. camb 2.0 moves the glass-mock CAMB fingerprint beyond the test's 1e-6 tolerance (As +1.4e-4, P(k) up to 2.9e-4 relative), so regenerate that reference under camb 2.0.4. The test now pins camb.config.AccuracyTarget to CAMB's default: pyccl's CAMB path sets that process-global to 0, which made the reference test depend on whether a pyccl test ran first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsAQRxNg6yDsUX4y2SWxTJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kage develop heads cs_util develop@e14cd686 (CosmoStat/cs_util#93) and shear_psf_leakage develop@649edf4a (CosmoStat/shear_psf_leakage#45) lift their scipy caps and admit camb 2; shear_psf_leakage no longer pulls gsl or stats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsAQRxNg6yDsUX4y2SWxTJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LisaGoh
approved these changes
Sep 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4pb4vZJimNoYkWqQCqEwR
… tip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4pb4vZJimNoYkWqQCqEwR
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.
Version conflicts had started to build up in the stack, so the lock could no longer be refreshed. This PR moves to the latest releases, which resolves them:
pyproject.toml:camb>=2.0andpyccl>=3.3.5, the first release whose CAMB path works on camb 2. The scipy cap is removed.uv.lock: camb 2.0.4, scipy 1.18.1, pyccl 3.3.6, and cs_util and shear_psf_leakage at their develop heads. Nothing else moves.test_glass_mock: the CAMB reference is regenerated under camb 2, and the tolerance is 5e-4. That absorbs CAMB version drift but still catches a real config change, which moves these numbers by 1e-3 or more.Effect on results, camb 1.6.6 → 2.0.4. These come from the CosmoSIS pipeline (
cosmosis_pipeline_A_ia.ini) at the fiducial values, on the v1.4.6 ξ± data and covariance:Tests:
pytest -m "not slow"gives the same counts as develop.— Claude (Opus) on behalf of Cail
🤖 Generated with Claude Code
https://claude.ai/code/session_01LsAQRxNg6yDsUX4y2SWxTJ