Skip to content

Commit

Permalink
Merge pull request #215 from halomod/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
steven-murray committed Apr 30, 2024
2 parents f745f41 + 5f25af0 commit a9b65ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test_suite.yaml
Expand Up @@ -34,8 +34,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup GNU Fortran
uses: modflowpy/install-gfortran-action@v1.0.1
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: 13
- name: Install
run: pip install .[dev]
- name: Run Tests
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -33,7 +33,7 @@ repos:
- flake8-print
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down
2 changes: 1 addition & 1 deletion src/hmf/cosmology/growth_factor.py
Expand Up @@ -110,7 +110,7 @@ def _d_plus(self, z: Union[float, np.ndarray]) -> Union[float, np.ndarray]:
raise ValueError("Redshifts <0 not supported")
if np.any(a < a_min):
raise ValueError(
f"Cannot compute integral for z > {1/a_min - 1}. Set amin lower."
f"Cannot compute integral for z > {1 / a_min - 1}. Set amin lower."
)

return (self.integral(a) - self.integral(a_min)) * self.cosmo.efunc(z)
Expand Down

0 comments on commit a9b65ee

Please sign in to comment.