Skip to content

Commit

Permalink
Enhance dask arguments processing in nanconvolve2d_gaussian()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Aug 26, 2024
1 parent a47826d commit b9306e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmtsar/pygmtsar/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def nanconvolve2d_gaussian_dask(data, weight, **kwargs):
# use map_overlap with the custom function to handle both arrays
return da.map_overlap(
nanconvolve2d_gaussian_dask_chunk,
*(da.broadcast_arrays(data, weight) if weight is not None else [data]),
depth=depth,
*([data, weight] if weight is not None else [data]),
depth={0: depth[0], 1: depth[1]},
boundary='none',
dtype=data.dtype,
meta=data._meta,
Expand Down

0 comments on commit b9306e5

Please sign in to comment.