You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some benchmarks with the original code:
Initial regrid dataset in fn test_xarray_regrid took 18.9291 seconds
Second regrid dataset in fn test_xarray_regrid took 13.4746 seconds
And by assigning 'weights' and 'reuse_weights' to regridder_kwargs
Initial regrid dataset in fn test_xarray_regrid took 16.8666 seconds
Second regrid dataset in fn test_xarray_regrid took 4.2991 seconds
It seems like the regridding weights in regrid_dataset are not reused as expected from the weights_location keyword.
The kwargs set at
xscen/src/xscen/regrid.py
Line 132 in 9998180
are not passed to xe.Regridder? They should be assigned to regridder_kwargs instead of kwargs
xscen/src/xscen/regrid.py
Line 142 in 9998180
Some benchmarks with the original code:
Initial regrid dataset in fn test_xarray_regrid took 18.9291 seconds
Second regrid dataset in fn test_xarray_regrid took 13.4746 seconds
And by assigning 'weights' and 'reuse_weights' to regridder_kwargs
Initial regrid dataset in fn test_xarray_regrid took 16.8666 seconds
Second regrid dataset in fn test_xarray_regrid took 4.2991 seconds
Fixed in f12895a
The text was updated successfully, but these errors were encountered: