Skip to content

Commit 6b8b383

Browse files
committed
Fix type checker, formatting
1 parent 9dc3bcb commit 6b8b383

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/xarray_regrid/methods/flox_reduce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def statistic_reduce(
8484
construct_intervals(sorted_target_coords[coord].to_numpy()) for coord in coords
8585
)
8686

87-
data = reduce_data_to_new_domain(data, sorted_target_coords, coords)
87+
data = reduce_data_to_new_domain(data, sorted_target_coords, coord_names)
8888

8989
result: xr.Dataset = flox.xarray.xarray_reduce(
9090
data,
@@ -95,7 +95,7 @@ def statistic_reduce(
9595
fill_value=fill_value,
9696
)
9797

98-
result = restore_properties(result, data, target_ds, coords, fill_value)
98+
result = restore_properties(result, data, target_ds, coord_names, fill_value)
9999
result = result.reindex_like(sorted_target_coords, copy=False)
100100
return result
101101

tests/test_reduce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def test_unsorted_coords(dummy_lc_data, dummy_target_grid):
249249
)
250250
lc_data = dummy_lc_data.copy()
251251

252-
lc_data["scramble_order"] = (
253-
lc_data["latitude"]*0 + np.array([1, 3, 7, 0, 2, 8, 9, -1, 5, 11, 12])
252+
lc_data["scramble_order"] = lc_data["latitude"] * 0 + np.array(
253+
[1, 3, 7, 0, 2, 8, 9, -1, 5, 11, 12]
254254
)
255255
lc_data = lc_data.sortby("scramble_order")
256256

0 commit comments

Comments
 (0)