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

FutureWarning in apply_ufunc #103

Merged
merged 3 commits into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
else:
INSTALL_REQUIRES = [
'esmpy>=8.0.0',
'xarray!=0.16.1',
'xarray>=0.16.2',
'numpy>=1.16',
'scipy',
'shapely',
Expand Down
16 changes: 10 additions & 6 deletions xesmf/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down