[yt-svn] commit/yt: 4 new changesets

Bitbucket commits-noreply at bitbucket.org
Mon Jul 30 12:36:30 PDT 2012


4 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/e265555a18cb/
changeset:   e265555a18cb
branch:      yt
user:        ngoldbaum
date:        2012-07-30 21:23:57
summary:     Updating PlotWindow so that projections with weight fields are saved with the correct filename
affected #:  1 file

diff -r aceb4f9032b71e1b22e75c9900b2ad3f1d5705dc -r e265555a18cb3953bf85213fee9c6f91a347252b yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -676,10 +676,12 @@
         elif name.endswith('.png'):
             return v.save(name)
         axis = axis_names[self.data_source.axis]
+        weight = None
         if 'Slice' in self.data_source.__class__.__name__:
             type = 'Slice'
         if 'Proj' in self.data_source.__class__.__name__:
             type = 'Projection'
+            weight = self.data_source.weight_field
         if 'Cutting' in self.data_source.__class__.__name__:
             type = 'OffAxisSlice'
         names = []
@@ -689,6 +691,8 @@
             else:
                 # for cutting planes
                 n = "%s_%s_%s" % (name, type, k)
+            if weight:
+                n += "_%s" % (weight)
             names.append(v.save(n))
         return names
 



https://bitbucket.org/yt_analysis/yt/changeset/3541f79586af/
changeset:   3541f79586af
branch:      yt
user:        ngoldbaum
date:        2012-07-30 21:25:56
summary:     Removing an unnecessary line.
affected #:  1 file

diff -r e265555a18cb3953bf85213fee9c6f91a347252b -r 3541f79586af34ee09db91a1354a2ffa702c2003 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -676,7 +676,6 @@
         elif name.endswith('.png'):
             return v.save(name)
         axis = axis_names[self.data_source.axis]
-        weight = None
         if 'Slice' in self.data_source.__class__.__name__:
             type = 'Slice'
         if 'Proj' in self.data_source.__class__.__name__:



https://bitbucket.org/yt_analysis/yt/changeset/91bce6915164/
changeset:   91bce6915164
branch:      yt
user:        ngoldbaum
date:        2012-07-30 21:35:26
summary:     Reverting the previous changeset.
affected #:  1 file

diff -r 3541f79586af34ee09db91a1354a2ffa702c2003 -r 91bce69151640bb55c5b1cecf20298d59925087d yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -676,6 +676,7 @@
         elif name.endswith('.png'):
             return v.save(name)
         axis = axis_names[self.data_source.axis]
+        weight = None
         if 'Slice' in self.data_source.__class__.__name__:
             type = 'Slice'
         if 'Proj' in self.data_source.__class__.__name__:



https://bitbucket.org/yt_analysis/yt/changeset/c4e02b50dd32/
changeset:   c4e02b50dd32
branch:      yt
user:        MatthewTurk
date:        2012-07-30 21:36:29
summary:     Merged in ngoldbaum/yt-cleancopy (pull request #226)
affected #:  1 file

diff -r 9ce1c46590e520ed99d243bf53ad0fd0c9ab7a0b -r c4e02b50dd32b303a2b0baa80caacd8b235858f4 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -676,10 +676,12 @@
         elif name.endswith('.png'):
             return v.save(name)
         axis = axis_names[self.data_source.axis]
+        weight = None
         if 'Slice' in self.data_source.__class__.__name__:
             type = 'Slice'
         if 'Proj' in self.data_source.__class__.__name__:
             type = 'Projection'
+            weight = self.data_source.weight_field
         if 'Cutting' in self.data_source.__class__.__name__:
             type = 'OffAxisSlice'
         names = []
@@ -689,6 +691,8 @@
             else:
                 # for cutting planes
                 n = "%s_%s_%s" % (name, type, k)
+            if weight:
+                n += "_%s" % (weight)
             names.append(v.save(n))
         return names

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