Skip to content

Commit

Permalink
Update mpas_ocean.py
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 authored Oct 7, 2024
1 parent 86284d6 commit 03a0fe4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions benchmarks/mpas_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ class DatasetBenchmark:
param_names = ['resolution',]
params = [['480km', '120km'],]


def setup(self, resolution, *args, **kwargs):


self.uxds = ux.open_dataset(file_path_dict[resolution][0], file_path_dict[resolution][1])

def teardown(self, resolution, *args, **kwargs):
Expand All @@ -50,14 +47,12 @@ class GridBenchmark:
params = [['480km', '120km'], ]

def setup(self, resolution, *args, **kwargs):

self.uxgrid = ux.open_grid(file_path_dict[resolution][0])

def teardown(self, resolution, *args, **kwargs):
del self.uxgrid



class Gradient(DatasetBenchmark):
def time_gradient(self, resolution):
self.uxds[data_var].gradient()
Expand Down

0 comments on commit 03a0fe4

Please sign in to comment.