[yt-svn] commit/yt: ngoldbaum: Fixing (width, unit) tuples in plotwindow.

Bitbucket commits-noreply at bitbucket.org
Tue Jul 31 22:15:16 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/89d481781a2e/
changeset:   89d481781a2e
branch:      yt
user:        ngoldbaum
date:        2012-08-01 07:14:45
summary:     Fixing (width, unit) tuples in plotwindow.
affected #:  1 file

diff -r 002a2fda4ae576dad99c3c4307b8abee1f6357b4 -r 89d481781a2e0a8446da844e084d83fd92ceae4a yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -130,7 +130,7 @@
     elif iterable(width): 
         if isinstance(width[1],str):
             w,unit = width
-            width = w
+            width = (w, w)
         elif isinstance(width[1],tuple):
             wx,unitx = width[0]
             wy,unity = width[1]

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