[yt-svn] commit/yt: xarthisius: Merged in MatthewTurk/yt (pull request #2111)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 6 17:51:37 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/e1b2e0a5997f/
Changeset:   e1b2e0a5997f
Branch:      yt
User:        xarthisius
Date:        2016-04-07 00:51:28+00:00
Summary:     Merged in MatthewTurk/yt (pull request #2111)

Allow for the special case of supplying width as a tuple of tuples.  Closes #1012
Affected #:  1 file

diff -r aca5c1974288c97c26833a95506c54554cb77f1e -r e1b2e0a5997f0cce7ff52547347e9e5214ad0d5c yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -1432,6 +1432,9 @@
             center = self.ds.arr(center, 'code_length')
         if iterable(width):
             w, u = width
+            if isinstance(w, tuple) and isinstance(u, tuple):
+                height = u
+                w, u = w
             width = self.ds.quan(w, input_units = u)
         elif not isinstance(width, YTArray):
             width = self.ds.quan(width, 'code_length')

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160407/2138328c/attachment.htm>


More information about the yt-svn mailing list