From 190b056d85ae50677c9dd8a634b758951a8a63fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2024 06:42:08 +0000 Subject: [PATCH 1/2] chore(deps): bump codecov/codecov-action from 4 to 5 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/test_suite.yaml | 2 +- .github/workflows/warnings-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_suite.yaml b/.github/workflows/test_suite.yaml index 86aef46..96c4231 100644 --- a/.github/workflows/test_suite.yaml +++ b/.github/workflows/test_suite.yaml @@ -41,7 +41,7 @@ jobs: - name: Run Tests run: | python -m pytest --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25 - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 if: matrix.os == 'ubuntu-latest' && success() && !contains(github.event.pull_request.labels.*.name, 'auto-pr') with: file: ./coverage.xml # optional diff --git a/.github/workflows/warnings-tests.yaml b/.github/workflows/warnings-tests.yaml index f37fa15..c629ed7 100644 --- a/.github/workflows/warnings-tests.yaml +++ b/.github/workflows/warnings-tests.yaml @@ -40,7 +40,7 @@ jobs: - name: Run Tests run: | python -m pytest -Werror --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25 - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 if: matrix.os == 'ubuntu-latest' && success() with: file: ./coverage.xml # optional From 32890509bc7209746fdf9b24203f62d9008d8680 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Mon, 2 Dec 2024 16:13:03 +0100 Subject: [PATCH 2/2] fix: newer versions of astropy have Ob0=0 by default --- src/hmf/density_field/transfer_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmf/density_field/transfer_models.py b/src/hmf/density_field/transfer_models.py index 2542abc..294f219 100644 --- a/src/hmf/density_field/transfer_models.py +++ b/src/hmf/density_field/transfer_models.py @@ -195,7 +195,7 @@ def __init__(self, *args, **kwargs): if self.params["kmax"]: self.params["camb_params"].Transfer.kmax = self.params["kmax"] - if self.cosmo.Ob0 is None: + if self.cosmo.Ob0 is None or self.cosmo.Ob0 == 0.0: raise ValueError( "To use CAMB, you must set the baryon density in the cosmology " "explicitly."