[yt-svn] commit/yt: jzuhone: Merged in ngoldbaum/yt (pull request #1851)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Nov 9 18:14:52 PST 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/1cd224904d44/
Changeset:   1cd224904d44
Branch:      yt
User:        jzuhone
Date:        2015-11-10 02:14:45+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1851)

[bugfix] Make default result_id for parallel_objects more useful
Affected #:  1 file

diff -r 25a0dbd51257bb3fd355338fd4594985c5963f77 -r 1cd224904d442bd872f6c8969d4a12935cb7ac64 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
@@ -471,7 +471,7 @@
     ...     sto.result = sp.quantities["AngularMomentumVector"]()
     ...
     >>> for sphere_id, L in sorted(storage.items()):
-    ...     print c[sphere_id], L
+    ...     print centers[sphere_id], L
     ...
 
     """
@@ -504,8 +504,7 @@
     # If our objects object is slice-aware, like time series data objects are,
     # this will prevent intermediate objects from being created.
     oiter = itertools.islice(enumerate(objects), my_new_id, None, njobs)
-    for obj_id, obj in oiter:
-        result_id = obj_id * njobs + my_new_id
+    for result_id, obj in oiter:
         if storage is not None:
             rstore = ResultsStorage()
             rstore.result_id = result_id

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