Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
- id: no-commit-to-branch

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.2.1"
hooks:
- id: ruff
types: [file, python]
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ def _lazy_max_run(array, axis=-1, **kwargs):
stepped_run_lengths = da.reductions.cumreduction(
np.maximum.accumulate,
np.maximum,
np.NINF,
-np.inf,
run_totals,
axis=axis,
dtype=cum_sum.dtype,
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/test_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_numpy_int_equality(self):

def test_numpy_float_equality(self):
dtypes = (
np.float_,
np.float64,
np.float16,
np.float32,
np.float64,
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/plot/test_contourf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_skip_contour(self):
def test_apply_contour_nans(self):
# Presence of nans should not prevent contours being added.
cube = simple_2d()
cube.data = cube.data.astype(np.float_)
cube.data = cube.data.astype(np.float64)
cube.data[0, 0] = np.nan

levels = [2, 4, 6, 8]
Expand Down