Skip to content

Commit

Permalink
Tweaks to benchmarks.regrid
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Nov 30, 2023
1 parent 6575c95 commit 3057809
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmarks/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@


def setup_regrid_2d(
shape: tuple[int, int],
num: int,
method: str,
order: int,
):
num_x, num_y = shape
num_x = num_y = num

x = np.linspace(-1, 1, num=num_x)
y = np.linspace(-1, 1, num=num_y)
Expand Down Expand Up @@ -43,7 +43,7 @@ def setup_regrid_2d(


def time_regrid_2d(
shape: tuple[int, int],
num: int,
method: str,
order: int,
):
Expand All @@ -58,12 +58,12 @@ def time_regrid_2d(

time_regrid_2d.setup = setup_regrid_2d
time_regrid_2d.params = (
[(100, 100), (200, 200), (300, 300), (400, 400)],
[100, 200, 300, 400, 500],
["conservative"],
[1],
)
time_regrid_2d.param_names = (
"shape",
"number of edges per axis",
"method",
"order",
)
Expand Down

0 comments on commit 3057809

Please sign in to comment.