[Yt-svn] yt-commit r1795 - branches/yt-1.7/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Wed Jul 7 13:02:43 PDT 2010
Author: mturk
Date: Wed Jul 7 13:02:43 2010
New Revision: 1795
URL: http://yt.enzotools.org/changeset/1795
Log:
Backporting fix for workless processors in parallel from trunk.
Modified:
branches/yt-1.7/yt/lagos/BaseDataTypes.py
Modified: branches/yt-1.7/yt/lagos/BaseDataTypes.py
==============================================================================
--- branches/yt-1.7/yt/lagos/BaseDataTypes.py (original)
+++ branches/yt-1.7/yt/lagos/BaseDataTypes.py Wed Jul 7 13:02:43 2010
@@ -589,7 +589,7 @@
# we're going to have to set the same thing several times
data = [self._get_data_from_grid(grid, field)
for grid in self._get_grids()]
- if len(data) == 0: data = None
+ if len(data) == 0: data = na.array([])
else: data = na.concatenate(data)
temp_data[field] = data
# Now the next field can use this field
More information about the yt-svn
mailing list