CosmoStat / CosmoStat/sp_validation

Migrate GLASS mocks off the deprecated `cosmology` package (unblocks glass ≥2025.2)

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
5
Avg merge
1d 14h
Merged PRs (30d)
19

Description

glass is pinned to ==2025.1 alongside glass-ext-camb==2023.6 and cosmology==2022.10.9. glass 2025.2 dropped the cosmology package in favour of cosmology.api, and sp_validation/glass_mock.py (l.181, l.224) and scripts/glass_mock/make_unions_glass_sim.py (l.321) still do from cosmology import Cosmology and pass that object to glass.distance_grid. Renovate's glass-2026 PR (#329) was closed for this reason and will stay closed until this is done.

Done when: the mock code uses the cosmology.api protocol (or glass's own cosmology adapter), the three pins are replaced by floors, and a mock generated with the new glass reproduces the fiducial 2025.1 result (same seed → same shear maps, or documented difference).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the dependency declarations for glass, glass-ext-camb, and cosmology, then read the imports and glass.distance_grid calls in sp_validation/glass_mock.py at lines 181 and 224 and scripts/glass_mock/make_unions_glass_sim.py at line 321. Update the mock path for the cosmology.api protocol or glass adapter, replace the three pins with floors, and verify that a new mock matches the fiducial 2025.1 result with the same seed or documents the difference.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.