Source

yt.boxlib_io_opt / projections.py

Full commit
from yt.config import ytcfg
ytcfg["yt","serialize"] = "False"
ytcfg["yt", "loglevel"] = "50"
from yt.mods import *

pf = load("plt00510/")

for ax in range(3):
    print "Axis", ax
    with parallel_profile("proj_%s_unweighted_Density" % ax):
        print "Proj1"
        proj = pf.h.proj(ax, "Density")
    with parallel_profile("proj_%s_weighted_Density" % ax):
        print "Proj2"
        proj = pf.h.proj(ax, "Density", "Density")
    with parallel_profile("proj_%s_unweighted_density" % ax):
        print "Proj3"
        proj = pf.h.proj(ax, "density")
    with parallel_profile("proj_%s_weighted_density" % ax):
        print "Proj4"
        proj = pf.h.proj(ax, "density", "density")