[Yt-svn] commit/yt-doc: sskory: Fixing small error in merger tree example.

Bitbucket commits-noreply at bitbucket.org
Tue Oct 25 10:29:56 PDT 2011


1 new commit in yt-doc:


https://bitbucket.org/yt_analysis/yt-doc/changeset/dde3c0defa58/
changeset:   dde3c0defa58
user:        sskory
date:        2011-10-25 19:27:58
summary:     Fixing small error in merger tree example.
affected #:  1 file

diff -r b661fc15f7b9053a6ab59eb1f7207ac74093fc96 -r dde3c0defa583236dcde6eaf2432ba91f7fba82a source/analysis_modules/merger_tree.rst
--- a/source/analysis_modules/merger_tree.rst
+++ b/source/analysis_modules/merger_tree.rst
@@ -739,8 +739,8 @@
   files = []
   start = 100
   finish = 116
-  for i in range(start+1 - finish):
-      files.append('/path/to/snapshots/DD%04d/data%04d' % (i+finish, i+finish))
+  for i in range(start, finish + 1):
+      files.append('/path/to/snapshots/DD%04d/data%04d' % (i, i))
 
   my_database = '/path/to/database/halos.db'

Repository URL: https://bitbucket.org/yt_analysis/yt-doc/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list