Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ classifiers = [
dependencies = [
"adjustText",
"astropy>=5.0",
# Floor at the current latest release; do not cap — we want the eventual
# scipy-1.18 fix release. Revisit the scipy cap below when camb ships
# > 1.6.6 with the scipy-1.18 / BBN fix.
"camb>=1.6",
# camb 2.0 is the first release whose BBN Y_He predictor tolerates scipy
# 1.18.0's shape-(1,) spline output; older camb fails set_cosmology there.
"camb>=2.0",
"clmm",
"colorama",
# Blinding closure (core, no extra): cryptography + sacc here, plus the
Expand Down Expand Up @@ -74,23 +73,16 @@ dependencies = [
"lmfit",
"numpy>=2.0",
"opencv-python-headless",
"pyccl",
# pyccl 3.3.5 is the first release that runs boltzmann_camb on camb 2
# (LSSTDESC/CCL#1303).
"pyccl>=3.3.5",
"pyarrow",
"pymaster",
"regions",
"reproject",
# Floor matches the resolved lock; needs sacc's 2.x rewrite (BlockDiagonalCovariance).
"sacc>=2.4,<3",
# scipy 1.18 ported FITPACK from Fortran to C, changing the return shape of
# RectBivariateSpline(scalar, scalar, grid=False) from 0-d `array(x)` to
# shape-(1,) `array([x])`. camb's BBN Y_He predictor (bbn.py) wraps the
# result in np.float64(), which collapses a 0-d array to a scalar but leaves
# a (1,) array as (1,); set_cosmology then fails at the ctypes float
# assignment `self.YHe = YHe` with `TypeError: only 0-dimensional arrays can
# be converted to Python scalars`, failing all get_cosmo-backed tests. camb
# 1.6.6 (latest on PyPI) and current master are both unfixed. Lift this cap
# when camb ships > 1.6.6 with the scipy-1.18 fix.
"scipy<1.19",
"scipy",
"seaborn",
# Intentionally tracks the mutable `develop` branch (NOT SHA-pinned):
# shear_psf_leakage is actively co-developed CosmoStat code we want to stay
Expand Down
Binary file modified src/sp_validation/tests/data/glass_mock_camb_reference.npz
Binary file not shown.
10 changes: 5 additions & 5 deletions src/sp_validation/tests/test_glass_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
CAMB params unchanged. When a GLASS-capable image lands, promote this to a
committed-map ``np.allclose`` check against a reference ``.npy``.

The reference was generated in the production container (CAMB 1.6.5); the
The reference was generated in the production container (CAMB 2.0.4); the
tolerance below absorbs cross-version CAMB float drift while still catching a
genuine config change, which moves these numbers by parts in 10⁰–10⁻³.
"""
Expand All @@ -48,10 +48,10 @@
# nside=16 keeps CAMB cheap; cosmology is config-default (UNIONS fiducial).
REF_CONFIG = GlassMockConfig(nside=16)

# Cross-version CAMB float tolerance. Scalars and P(k) reproduce to ~1e-12
# within a version; 1e-6 relative leaves headroom for a CAMB point release
# while a real config change moves these by >>1e-3.
RTOL = 1e-6
# Absorbs CAMB version drift and CAMB's process-global AccuracyTarget (which
# pyccl sets to 0), each a few 1e-4, while a real config change moves these
# by >=1e-3.
RTOL = 5e-4
ATOL = 0.0


Expand Down
54 changes: 13 additions & 41 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading