[yt-svn] commit/yt: ngoldbaum: Fixing an error in the docstrings for TimeSeriesData.piter()

Bitbucket commits-noreply at bitbucket.org
Tue Dec 4 12:57:24 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/939cff5bd00c/
changeset:   939cff5bd00c
branch:      yt
user:        ngoldbaum
date:        2012-12-04 21:57:05
summary:     Fixing an error in the docstrings for TimeSeriesData.piter()
affected #:  1 file

diff -r 8fc60853e8eb6bd24242707400a4dfb562f69868 -r 939cff5bd00cba49a175f99547fe27d3e416691a yt/data_objects/time_series.py
--- a/yt/data_objects/time_series.py
+++ b/yt/data_objects/time_series.py
@@ -173,12 +173,12 @@
         This demonstrates how one might store results:
 
         >>> ts = TimeSeriesData.from_filenames("DD*/DD*.hierarchy")
-        >>> storage = {}
-        >>> for sto, pf in ts.piter():
+        >>> my_storage = {}
+        >>> for sto, pf in ts.piter(storage=my_storage):
         ...     v, c = pf.h.find_max("Density")
         ...     sto.result = (v, c)
         ...
-        >>> for i, (v, c) in sorted(storage.items()):
+        >>> for i, (v, c) in sorted(my_storage.items()):
         ...     print "% 4i  %0.3e" % (i, v)
         ...

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

--

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