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

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


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/8a8b13b4444d/
Changeset:   8a8b13b4444d
Branch:      yt
User:        MatthewTurk
Date:        2016-04-06 18:51:12+00:00
Summary:     Allow for the special case of supplying width as a tuple of tuples.
Affected #:  1 file

diff -r 2b15ed4adb92292dc18d50f778b813f7e003cfc3 -r 8a8b13b4444d3c4fc6a90a2eae6143be7a056826 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')


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/65bea904/attachment.html>


More information about the yt-svn mailing list