[Yt-svn] yt-commit r1794 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Wed Jul 7 13:01:17 PDT 2010
Author: mturk
Date: Wed Jul 7 13:01:17 2010
New Revision: 1794
URL: http://yt.enzotools.org/changeset/1794
Log:
Fixing a bug when not all processors had work to do.
Modified:
trunk/yt/lagos/BaseDataTypes.py
Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py (original)
+++ trunk/yt/lagos/BaseDataTypes.py Wed Jul 7 13:01:17 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