Skip to content

Commit ae5b638

Browse files
ruff fix
1 parent 750bc30 commit ae5b638

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/esmf_regrid/esmf_regridder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ def _gen_weights_and_data(self, src_array):
191191
return weight_sums, flat_tgt, extra_shape
192192

193193
def _regrid_from_weights_and_data(
194-
self, tgt_weights, tgt_data, extra, norm_type=Constants.NormType.FRACAREA, mdtol=1
194+
self,
195+
tgt_weights,
196+
tgt_data,
197+
extra,
198+
norm_type=Constants.NormType.FRACAREA,
199+
mdtol=1,
195200
):
196201
# Set the minimum mdtol to be slightly higher than 0 to account for rounding
197202
# errors.

src/esmf_regrid/experimental/partition.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ def apply_regridders(self, cube, allow_incomplete=False):
240240
if file in files:
241241
next_regridder = load_regridder(file, allow_partial=True)
242242
cube_chunk = _get_chunk(cube, chunk)
243-
next_weights, next_result, extra = next_regridder.partial_regrid(cube_chunk)
243+
next_weights, next_result, extra = next_regridder.partial_regrid(
244+
cube_chunk
245+
)
244246
if current_weights is None:
245247
current_weights = next_weights
246248
else:
@@ -251,5 +253,8 @@ def apply_regridders(self, cube, allow_incomplete=False):
251253
current_result += next_result
252254

253255
return next_regridder.finish_regridding(
254-
cube_chunk, current_weights, current_result, extra,
256+
cube_chunk,
257+
current_weights,
258+
current_result,
259+
extra,
255260
)

0 commit comments

Comments
 (0)