-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In some of our benchmarks (mpas_ocean specifically) there is a test of two files, 120km and 480km. Profiling fails when this is the case. Changing the code to only use one file allows profiling to work again:
class ConstructTreeStructures:
def setup(self):
self.uxds = ux.open_dataset(file_path_dict['120km'][0], file_path_dict['120km'][1])
def teardown(self):
del self.uxds
def time_kd_tree(self):
self.uxds.uxgrid.get_kd_tree()
def time_ball_tree(self):
self.uxds.uxgrid.get_ball_tree()
Running asv profile mpas_ocean.ConstructTreeStructures.time_kd_tree --python=same --gui=snakeviz
with the normal unchanged class gives an error: mpas_ocean.ConstructTreeStructures.time_kd_tree' benchmark not found
. Is there a way around this, or is this a problem on our end?
Metadata
Metadata
Assignees
Labels
No labels