Re: [Yt-dev] EnzoFOF merger tree
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@yahoo.com http://stephenskory.com/ 510.621.3687 (google voice)
Nice work. +1. On Tue, Jan 18, 2011 at 1:35 PM, Stephen Skory <stephenskory@yahoo.com> 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:
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@yahoo.com http://stephenskory.com/ 510.621.3687 (google voice)
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Hi Stephen, Thanks a lot for your work! The cleaner version looks great. You have my vote to push it. John 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:
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@yahoo.com http://stephenskory.com/ 510.621.3687 (google voice)
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (3)
-
John Wise
-
Matthew Turk
-
Stephen Skory