[Yt-svn] yt-commit r1517 - branches/yt-1.5/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Nov 3 15:54:24 PST 2009
Author: mturk
Date: Tue Nov 3 15:54:24 2009
New Revision: 1517
URL: http://yt.enzotools.org/changeset/1517
Log:
Applied the patch from r1512 to the stable branch
Modified:
branches/yt-1.5/yt/lagos/BaseDataTypes.py
Modified: branches/yt-1.5/yt/lagos/BaseDataTypes.py
==============================================================================
--- branches/yt-1.5/yt/lagos/BaseDataTypes.py (original)
+++ branches/yt-1.5/yt/lagos/BaseDataTypes.py Tue Nov 3 15:54:24 2009
@@ -35,9 +35,11 @@
"""
def save_state(self, grid, field=None):
old_params = grid.field_parameters
+ old_keys = grid.data.keys()
grid.field_parameters = self.field_parameters
tr = func(self, grid, field)
grid.field_parameters = old_params
+ grid.data = dict( [(k, grid.data[k]) for k in old_keys] )
return tr
return save_state
More information about the yt-svn
mailing list