From 507cd1cb2a953bd168af067e066df833261080b7 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Mon, 10 Feb 2025 11:39:05 +0100 Subject: [PATCH] simplify map_over_datasets after https://github.com/pydata/xarray/pull/10012 --- mesmer/core/_datatreecompat.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mesmer/core/_datatreecompat.py b/mesmer/core/_datatreecompat.py index 9d88bd12..41aaeb5b 100644 --- a/mesmer/core/_datatreecompat.py +++ b/mesmer/core/_datatreecompat.py @@ -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")