Skip to content

BUG: fix set_cosmology#1005

Merged
ColmTalbot merged 3 commits into
bilby-dev:mainfrom
mj-will:fix-global-comsology
Nov 3, 2025
Merged

BUG: fix set_cosmology#1005
ColmTalbot merged 3 commits into
bilby-dev:mainfrom
mj-will:fix-global-comsology

Conversation

@mj-will

@mj-will mj-will commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

set_cosmology was only updating COSMOLOGY and not DEFAULT COSMOLOGY. This PR should fix that.

To-do

  • Add a test

@mj-will mj-will added bug Something isn't working cosmology labels Oct 23, 2025
@mj-will mj-will linked an issue Oct 23, 2025 that may be closed by this pull request
@mj-will mj-will marked this pull request as ready for review October 30, 2025 09:19
@ColmTalbot ColmTalbot added this to the 2.7.1 milestone Oct 31, 2025
@ColmTalbot ColmTalbot added this pull request to the merge queue Nov 3, 2025
Merged via the queue into bilby-dev:main with commit 03b8dc0 Nov 3, 2025
13 checks passed
ColmTalbot pushed a commit that referenced this pull request Nov 5, 2025
* BUG: fix set_cosmology

* TST: add test for getting cosmology after global is set

* TST: use fixture to ensure cosmology is reset
mj-will added a commit to mj-will/bilby that referenced this pull request Feb 19, 2026
* BUG: fix set_cosmology

* TST: add test for getting cosmology after global is set

* TST: use fixture to ensure cosmology is reset
fgittins pushed a commit to fgittins/bilby that referenced this pull request Mar 5, 2026
* BUG: fix set_cosmology

* TST: add test for getting cosmology after global is set

* TST: use fixture to ensure cosmology is reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cosmology

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating default cosmology fails

3 participants