[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Sun Nov 20 16:14:17 PST 2011
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/765ca747c343/
changeset: 765ca747c343
branch: yt
user: sskory
date: 2011-11-15 17:23:21
summary: Make clumps behave a bit more like regular data containers and
allow quantities to work as usual.
affected #: 1 file
diff -r 1a28da97864f5ecfd09e2c842ceb63232bc78894 -r 765ca747c343ddae25b1bace6f17fe5d50231adc yt/analysis_modules/level_sets/clump_handling.py
--- a/yt/analysis_modules/level_sets/clump_handling.py
+++ b/yt/analysis_modules/level_sets/clump_handling.py
@@ -35,6 +35,7 @@
function=None, clump_info=None):
self.parent = parent
self.data = data
+ self.quantities = data.quantities
self.field = field
self.min_val = self.data[field].min()
self.max_val = self.data[field].max()
https://bitbucket.org/yt_analysis/yt/changeset/13c11750d67d/
changeset: 13c11750d67d
branch: yt
user: sskory
date: 2011-11-19 00:14:40
summary: Adding .quantities to the unpickling reconstruction.
affected #: 1 file
diff -r 765ca747c343ddae25b1bace6f17fe5d50231adc -r 13c11750d67dbf2ab23cc1bd5ac56e7baa24d3e9 yt/analysis_modules/level_sets/clump_handling.py
--- a/yt/analysis_modules/level_sets/clump_handling.py
+++ b/yt/analysis_modules/level_sets/clump_handling.py
@@ -168,6 +168,7 @@
# unreliable in the unpickling
for child in children: child.parent = obj
obj.data = data[1] # Strip out the PF
+ obj.quantities = obj.data.quantities
if obj.parent is None: return (data[0], obj)
return obj
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list