Source

yt.geometry_tests / old_proj.py

1
2
3
4
5
6
7
8
from yt.mods import *
import time
t1 = time.time()
pf = load("output_00045/info_00045.txt")
pf.h
pf.h.proj(0, "Ones")
t2 = time.time()
print "Took %0.3e" % (t2-t1)