[Yt-svn] yt-commit r1578 - trunk/yt/lagos
sskory at wrangler.dreamhost.com
sskory at wrangler.dreamhost.com
Wed Jan 20 15:16:58 PST 2010
Author: sskory
Date: Wed Jan 20 15:16:57 2010
New Revision: 1578
URL: http://yt.enzotools.org/changeset/1578
Log:
Actually, we meant to sort conv_factors in the same order as file name to reduce fopens.
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:16:57 2010
@@ -203,7 +203,7 @@
conv_factors):
filenames = [g.filename for g in grid_list]
ids = [g.id for g in grid_list]
- ids, filenames = zip(*sorted(zip(ids, filenames)))
+ filenames, ids, conv_factors = zip(*sorted(zip(filenames, ids, conv_factors)))
return HDF5LightReader.ReadParticles(
rtype, fields, list(filenames), list(ids), conv_factors, args, 1)
More information about the yt-svn
mailing list