From d707db5776ce8c16b10d7eb3dab4a07edbec84a3 Mon Sep 17 00:00:00 2001 From: Sam Levang Date: Wed, 21 Jul 2021 11:06:52 -0400 Subject: [PATCH 1/2] initial commit --- xesmf/frontend.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xesmf/frontend.py b/xesmf/frontend.py index cf300027..0b637a15 100644 --- a/xesmf/frontend.py +++ b/xesmf/frontend.py @@ -527,9 +527,11 @@ def regrid_dataarray(self, dr_in, keep_attrs=False, skipna=False, na_thres=1.0): output_core_dims=[temp_horiz_dims], dask='parallelized', output_dtypes=[float], - output_sizes={ - temp_horiz_dims[0]: self.shape_out[0], - temp_horiz_dims[1]: self.shape_out[1], + dask_gufunc_kwargs={ + 'output_sizes': { + temp_horiz_dims[0]: self.shape_out[0], + temp_horiz_dims[1]: self.shape_out[1], + }, }, keep_attrs=keep_attrs, ) @@ -560,9 +562,11 @@ def regrid_dataset(self, ds_in, keep_attrs=False, skipna=False, na_thres=1.0): output_core_dims=[temp_horiz_dims], dask='parallelized', output_dtypes=[float], - output_sizes={ - temp_horiz_dims[0]: self.shape_out[0], - temp_horiz_dims[1]: self.shape_out[1], + dask_gufunc_kwargs={ + 'output_sizes': { + temp_horiz_dims[0]: self.shape_out[0], + temp_horiz_dims[1]: self.shape_out[1], + }, }, keep_attrs=keep_attrs, ) From 5e473b610338e4dea7fb842ac6a6e4fc6bf921ad Mon Sep 17 00:00:00 2001 From: Sam Levang Date: Thu, 12 Aug 2021 15:06:03 -0400 Subject: [PATCH 2/2] supported xarray versions --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 02dbbba8..c7d73265 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ else: INSTALL_REQUIRES = [ 'esmpy>=8.0.0', - 'xarray!=0.16.1', + 'xarray>=0.16.2', 'numpy>=1.16', 'scipy', 'shapely',