[yt-svn] commit/yt-3.0: MatthewTurk: This fixes not being able to do derived quantities.

Bitbucket commits-noreply at bitbucket.org
Thu Aug 2 12:18:42 PDT 2012


1 new commit in yt-3.0:


https://bitbucket.org/yt_analysis/yt-3.0/changeset/3ff4f4700145/
changeset:   3ff4f4700145
branch:      yt-3.0
user:        MatthewTurk
date:        2012-08-02 21:15:43
summary:     This fixes not being able to do derived quantities.
affected #:  1 file

diff -r af29f167a3f9618d0db910fc66d13ec98513989e -r 3ff4f470014548d30377d71d8ee2937a8673d8a9 yt/utilities/parallel_tools/parallel_analysis_interface.py
--- a/yt/utilities/parallel_tools/parallel_analysis_interface.py
+++ b/yt/utilities/parallel_tools/parallel_analysis_interface.py
@@ -430,13 +430,11 @@
             break
     if parallel_capable:
         communication_system.push_with_ids(all_new_comms[my_new_id].tolist())
-    obj_ids = na.arange(len(objects))
 
     to_share = {}
     # If our objects object is slice-aware, like time series data objects are,
     # this will prevent intermediate objects from being created.
-    oiter = itertools.izip(obj_ids[my_new_id::njobs],
-                           objects[my_new_id::njobs])
+    oiter = itertools.islice(enumerate(objects), my_new_id, None, njobs)
     for result_id, obj in oiter:
         if storage is not None:
             rstore = ResultsStorage()

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

--

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