Skip to content

Commit a02ef84

Browse files
[pre-commit.ci] pre-commit autoupdate (#372)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 25.12.0](psf/black-pre-commit-mirror@25.11.0...25.12.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.6 → v0.14.10](astral-sh/ruff-pre-commit@v0.14.6...v0.14.10) * Fix trapz bug --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dan Foreman-Mackey <foreman.mackey@gmail.com>
1 parent 436f506 commit a02ef84

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ repos:
77
exclude_types: [json, binary]
88
- id: check-yaml
99
- repo: https://github.com/psf/black-pre-commit-mirror
10-
rev: "25.11.0"
10+
rev: "25.12.0"
1111
hooks:
1212
- id: black-jupyter
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: "v0.14.6"
14+
rev: "v0.14.10"
1515
hooks:
1616
- id: ruff
1717
args: [--fix, --exit-non-zero-on-fix]

tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_tabular(pop_and_params):
149149
assert not np.allclose(spec / spec_lowz - 1.0, 0.0)
150150

151151
# test the formed mass for single age
152-
assert np.allclose(np.trapz(sfr, age) * 1e9, pop.formed_mass)
152+
assert np.allclose(np.trapezoid(sfr, age) * 1e9, pop.formed_mass)
153153

154154
# Multi-metallicity
155155
pop._zcontinuous = 3

0 commit comments

Comments
 (0)