From a886ca2f163bf1d858d14f7b4235967ffc98823d Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Sun, 3 Dec 2023 23:56:25 -0700 Subject: [PATCH] Fixed benchmarks for `regridding.regrid()`. --- benchmarks/regrid.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/benchmarks/regrid.py b/benchmarks/regrid.py index bbdc731..1cf02e7 100644 --- a/benchmarks/regrid.py +++ b/benchmarks/regrid.py @@ -1,8 +1,8 @@ import numpy as np import regridding -vertices_input = None -vertices_output = None +coordinates_input = None +coordinates_output = None values_input = None @@ -25,17 +25,17 @@ def setup_regrid_2d( y_output = np.linspace(y_input.min(), y_input.max(), num=num_y) x_output, y_output = np.meshgrid(x_output, y_output, indexing="ij") - global vertices_input - global vertices_output + global coordinates_input + global coordinates_output global values_input - vertices_input = (x_input, y_input) - vertices_output = (x_output, y_output) + coordinates_input = (x_input, y_input) + coordinates_output = (x_output, y_output) values_input = np.random.uniform(0, 1, size=(num_x - 1, num_y - 1)) regridding.regrid( - vertices_input=vertices_input, - vertices_output=vertices_output, + coordinates_input=coordinates_input, + coordinates_output=coordinates_output, values_input=values_input, method=method, order=order, @@ -48,8 +48,8 @@ def time_regrid_2d( order: int, ): regridding.regrid( - vertices_input=vertices_input, - vertices_output=vertices_output, + coordinates_input=coordinates_input, + coordinates_output=coordinates_output, values_input=values_input, method=method, order=order,