Skip to content

Commit fc8fe5b

Browse files
authored
General maintenance (#73)
1 parent ccba3dd commit fc8fe5b

11 files changed

Lines changed: 4536 additions & 1248 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: prefix-dev/setup-pixi@v0
2121
with:
22-
pixi-version: v0.63.2
22+
pixi-version: v0.65.0
2323
cache: true
2424
environments: docs
2525

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- uses: prefix-dev/setup-pixi@v0
1515
with:
16-
pixi-version: v0.63.2
16+
pixi-version: v0.65.0
1717
cache: true
1818
environments: lint
1919
- name: Run linters

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- uses: prefix-dev/setup-pixi@v0
5757
with:
58-
pixi-version: v0.63.2
58+
pixi-version: v0.65.0
5959
environments: ${{ matrix.environment }}
6060
cache: ${{ matrix.environment != 'upstream' }}
6161
locked: ${{ matrix.environment != 'upstream' }}

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: prefix-dev/setup-pixi@v0
2424
with:
25-
pixi-version: v0.63.2
25+
pixi-version: v0.65.0
2626
cache: true
2727
environments: dist
2828

doc/requirements.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies:
1111
- msgpack-python *
1212
- pyyaml *
1313
- netcdf4 *
14+
- libnetcdf !=4.10.0
1415
- scipy *
1516
- h5netcdf *
1617
- zarr *

doc/whats-new.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ v2.1.0 (unreleased)
99
of text messages for all differences in numpy, pandas, and xarray objects
1010
- New function :func:`display_diffs` that displays differences
1111
in Jupyter notebooks
12-
- Fixed issue that would cause excessive RAM usage when comparing Dask arrays with
13-
2+ dimensions using a distributed scheduler
12+
- Fixed issues that would cause slowdowns and excessive RAM usage when comparing Dask
13+
arrays with 2+ dimensions using a distributed scheduler
1414
- Added support for P2P rechunk in Dask distributed
1515

1616

pixi.lock

Lines changed: 4455 additions & 1226 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ distributed = "*"
170170
msgpack-python = "*"
171171
PyYAML = "*"
172172
netcdf4 = "*" # netCDF engine
173+
libnetcdf = "!=4.10.0" # Breaks coverage
173174
scipy = "*" # netCDF engine
174175
h5netcdf = "*" # netCDF engine
175176
zarr = "*"
@@ -227,6 +228,7 @@ ipython = { cmd = "ipython", description = "Launch IPython" }
227228

228229
[tool.pixi.feature.jupyter.dependencies]
229230
jupyterlab = "*"
231+
python-graphviz = "*"
230232

231233
[tool.pixi.feature.jupyter.tasks]
232234
jupyter = { cmd = "jupyter lab", description = "Launch JupyterLab" }

recursive_diff/core.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,9 @@ def _diff_dataarrays(
430430
# Generate a bit-mask of the differences
431431
# For Dask-backed arrays, this operation is delayed.
432432
if lhs.dtype.kind in "iufc" and rhs.dtype.kind in "iufc":
433-
# Both arrays are numeric
434-
if is_dask:
435-
import dask.array as da
436-
437-
isclose = da.isclose
438-
else:
439-
isclose = np.isclose
440-
441-
mask = ~isclose(lhs.data, rhs.data, rtol=rel_tol, atol=abs_tol, equal_nan=True)
433+
mask = ~np.isclose(
434+
lhs.data, rhs.data, rtol=rel_tol, atol=abs_tol, equal_nan=True
435+
)
442436
elif lhs.dtype.kind == "M" and rhs.dtype.kind == "M":
443437
# Both arrays are datetime64
444438
# Unlike with np.isclose(equal_nan=True), there is no

recursive_diff/tests/test_diff_arrays.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_diff_arrays(chunk):
5252
"abs_delta": [1.0],
5353
"rel_delta": [0.25],
5454
"x": ["b"],
55-
"y": np.asarray([1]),
55+
"y": np.asarray([1], dtype=np.int_),
5656
}
5757
).set_index(["x", "y"]),
5858
)
@@ -61,7 +61,7 @@ def test_diff_arrays(chunk):
6161
arrays["[3][data]"],
6262
pd.DataFrame(
6363
{"lhs": ["bar"], "rhs": ["baz"]},
64-
index=pd.Index(np.asarray([1]), name="dim_0"),
64+
index=pd.Index(np.asarray([1], dtype=np.int_), name="dim_0"),
6565
),
6666
)
6767

0 commit comments

Comments
 (0)