Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of map_blocks in AreaWeighted and elsewhere #5767

Merged
merged 14 commits into from
Mar 1, 2024
Prev Previous commit
Next Next commit
map_complete_blocks docstring.
  • Loading branch information
trexfeathers committed Mar 1, 2024
commit 70c5435156fc072819722f2f3781d87b88f36dfe
9 changes: 9 additions & 0 deletions lib/iris/_lazy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ def map_complete_blocks(src, func, dims, out_sizes, *args, **kwargs):
"""Apply a function to complete blocks.

Complete means that the data is not chunked along the chosen dimensions.
Uses :func:`dask.array.map_blocks` to implement the mapping.

Parameters
----------
Expand All @@ -465,6 +466,14 @@ def map_complete_blocks(src, func, dims, out_sizes, *args, **kwargs):
Dimensions that cannot be chunked.
out_sizes : tuple of int
Output size of dimensions that cannot be chunked.
*args : tuple
Additional arguments to pass to `func`.
**kwargs : dict
Additional keyword arguments to pass to `func`.

See Also
--------
:func:`dask.array.map_blocks` : The function used for the mapping.

"""
if is_lazy_data(src):
Expand Down