Skip to content

Commit

Permalink
simplify map_over_datasets after pydata/xarray#10012
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Feb 10, 2025
1 parent d157e42 commit 507cd1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mesmer/core/_datatreecompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ def _func(ds, *args, **kwargs):

def map_over_datasets(func, *args, **kwargs):

# https://github.com/pydata/xarray/issues/10009
func = functools.partial(func, **kwargs)

return _map_over_datasets(skip_empty_nodes(func), *args)
return _map_over_datasets(skip_empty_nodes(func), *args, kwargs=kwargs)

# raise ValueError("Currently not supported")

Expand Down

0 comments on commit 507cd1c

Please sign in to comment.