Skip to content

Commit

Permalink
Use dir_load for tipsy
Browse files Browse the repository at this point in the history
--HG--
branch : yt
  • Loading branch information
Xarthisius committed Mar 12, 2015
1 parent 8ad4236 commit b32b4a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmarks/benchmarks/large_tipsy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import yt
from yt.utilities.answer_testing.framework import data_dir_load

class PKDGravTipsySuite:
dsname = "halo1e11_run1.00400/halo1e11_run1.00400"
Expand All @@ -12,7 +13,7 @@ def setup(self):
cosmology_parameters = cosmology_parameters,
unit_base = {'length': (1.0/60.0, "Mpccm/h")},
n_ref = 64)
self.ds = yt.TipsyDataset(self.dsname, **kwargs)
self.ds = data_dir_load(self.dsname, yt.TipsyDataset, (), kwargs)

def time_all_particles(self):
dd = self.ds.all_data()
Expand Down Expand Up @@ -50,4 +51,4 @@ def setup(self):
kwargs = dict(cosmology_parameters = cosmology_parameters,
unit_base = {'length': (1.0/60.0, "Mpccm/h")},
n_ref = 64)
self.ds = yt.TipsyDataset(self.dsname, **kwargs)
self.ds = data_dir_load(self.dsname, yt.TipsyDataset, (), kwargs)

0 comments on commit b32b4a5

Please sign in to comment.