[yt-svn] commit/yt: MatthewTurk: Fixing self._period to have two items for the callbacks, and changing the

Bitbucket commits-noreply at bitbucket.org
Tue Jul 24 14:04:22 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/0d36c2744bb5/
changeset:   0d36c2744bb5
branch:      yt
user:        MatthewTurk
date:        2012-07-24 23:04:04
summary:     Fixing self._period to have two items for the callbacks, and changing the
save() command to use str(pf) rather than the filename, which might include the
directory.
affected #:  1 file

diff -r 239a7fdd1eeca5c4e3aa140d1900b5aae2ec55d6 -r 0d36c2744bb552cbf798194e083ba243f00da021 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -91,7 +91,11 @@
         self._figure = window_plot.figure
         if len(self._axes.images) > 0:
             self.image = self._axes.images[0]
-        self._period = frb.pf.domain_width
+        if frb.axis < 3:
+            DD = frb.pf.domain_width
+            xax = x_dict[frb.axis]
+            yax = y_dict[frb.axis]
+            self._period = (DD[xax], DD[yax])
         self.pf = frb.pf
         self.xlim = viewer.xlim
         self.ylim = viewer.ylim
@@ -660,7 +664,7 @@
 
         """
         if name == None:
-            name = str(self.pf.parameter_filename)
+            name = str(self.pf)
         elif name[-4:] == '.png':
             v.save(name)
             return

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