[Yt-svn] yt-commit r1577 - trunk/yt/lagos

sskory at wrangler.dreamhost.com sskory at wrangler.dreamhost.com
Wed Jan 20 15:12:15 PST 2010


Author: sskory
Date: Wed Jan 20 15:12:14 2010
New Revision: 1577
URL: http://yt.enzotools.org/changeset/1577

Log:
Fixing the sort by grid ids for ParticleIO.

Modified:
   trunk/yt/lagos/DataReadingFuncs.py

Modified: trunk/yt/lagos/DataReadingFuncs.py
==============================================================================
--- trunk/yt/lagos/DataReadingFuncs.py	(original)
+++ trunk/yt/lagos/DataReadingFuncs.py	Wed Jan 20 15:12:14 2010
@@ -203,7 +203,7 @@
                         conv_factors):
         filenames = [g.filename for g in grid_list]
         ids = [g.id for g in grid_list]
-        filenames, ids = zip(*sorted(zip(filenames,ids)))
+        ids, filenames = zip(*sorted(zip(ids, filenames)))
         return HDF5LightReader.ReadParticles(
             rtype, fields, list(filenames), list(ids), conv_factors, args, 1)
 



More information about the yt-svn mailing list