Source

yt.geometry_tests / proj.py

Full commit
from yt.mods import *
import os
if os.path.exists("DD0039/output_0039.yt"):
    os.unlink("DD0039/output_0039.yt")
    print "Deleted old .yt file"
t1 = time.time()
pf = load("DD0039/output_0039")
proj = pf.h.proj(0, "Ones", weight="Ones")
t2 = time.time()

print "Took %0.3e" % (t2-t1)