[Yt-dev] EnzoFOF merger tree

Stephen Skory stephenskory at yahoo.com
Tue Jan 18 10:35:02 PST 2011


Hi John & Matt,

I've successfully converted John's dot output to use pydot, and in the process cleaned the output up quite a bit. Like my merger tree, it will attempt to guess the kind of file you want from the suffix of the file name. So below will output a png directly if "dot" is in your path:

"""
from yt.mods import *
import yt.analysis_modules.halo_merger_tree.api as hm

tree = hm.EnzoFOFMergerTree((7.0,15.0), load_saved=True)
tree.build_tree(0, min_particles=500)
tree.write_dot(filename = "tree_00000.png")
"""

Cleaner new version:

http://screencast.com/t/ZrEpYqab


Older version, that was missing strict horizontal alignment between the halo nodes and redshift label nodes, and had unnecessary redshift nodes:

http://screencast.com/t/hnGom9VSf

If there are no objections, I'll push it, as well as my merger tree changes, and adding the pydot file (I've put it in yt.utilities). I'll also update the docs for my merger tree simultaneously. I've also updated the docstrings, where applicable.

 Stephen Skory
stephenskory at yahoo.com
http://stephenskory.com/
510.621.3687 (google voice)




More information about the yt-dev mailing list