33from pathlib import Path
44
55import numpy as np
6- from polars .testing .parametric import dtypes
76
87import uxarray as ux
98
@@ -170,8 +169,8 @@ def time_check_norm(self, resolution):
170169 from uxarray .grid .validation import _check_normalization
171170 _check_normalization (self .uxgrid )
172171
173- class CrossSection :
174- param_names = DatasetBenchmark .param_names + ['lat_step ' ]
172+ class CrossSections ( DatasetBenchmark ) :
173+ param_names = DatasetBenchmark .param_names + ['n_lat ' ]
175174 params = DatasetBenchmark .params + [[1 , 2 , 4 ]]
176175
177176 def setup (self , resolution , lat_step ):
@@ -180,13 +179,6 @@ def setup(self, resolution, lat_step):
180179 self .lats = np .arange (- 45 , 45 , lat_step )
181180 _ = self .uxgrid .bounds
182181
183- class CrossSections (DatasetBenchmark ):
184- param_names = DatasetBenchmark .param_names + ['n_lat' ]
185- params = DatasetBenchmark .params + [[1 , 2 , 4 , 8 ]]
186-
187- def time_constant_lat_fast (self , resolution , n_lat ):
188- for lat in np .linspace (- 89 , 89 , n_lat ):
189- self .uxds .uxgrid .constant_latitude_cross_section (lat , method = 'fast' )
190182 def teardown (self , resolution , lat_step ):
191183 del self .uxgrid
192184
0 commit comments