Thanks a lot for your work! The cleaner version looks great. You have my vote to push it.
On 18 Jan 2011, at 13:35, Stephen Skory wrote:
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:
Older version, that was missing strict horizontal alignment between the halo nodes and redshift label nodes, and had unnecessary redshift nodes:
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 firstname.lastname@example.org http://stephenskory.com/ 510.621.3687 (google voice)
Yt-dev mailing list Ytemail@example.com http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org