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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 20 11:05:34 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/1fdde77a8abd/
Changeset:   1fdde77a8abd
Branch:      yt
User:        ngoldbaum
Date:        2016-04-20 18:05:24+00:00
Summary:     Merged in MatthewTurk/yt (pull request #2131)

Use axis names instead of dimensions for spherical pixelization
Affected #:  1 file

diff -r a474e0c679f8d38a8431115c80c784fce575a52c -r 1fdde77a8abd4b1302150bcbae522edb067d63e1 yt/geometry/coordinates/spherical_coordinates.py
--- a/yt/geometry/coordinates/spherical_coordinates.py
+++ b/yt/geometry/coordinates/spherical_coordinates.py
@@ -121,13 +121,14 @@
 
     def _cyl_pixelize(self, data_source, field, bounds, size, antialias,
                       dimension):
-        if dimension == 1:
+        name = self.axis_name[dimension]
+        if name == 'theta':
             buff = pixelize_cylinder(data_source['px'],
                                      data_source['pdx'],
                                      data_source['py'],
                                      data_source['pdy'],
                                      size, data_source[field], bounds)
-        elif dimension == 2:
+        elif name == 'phi':
             buff = pixelize_cylinder(data_source['px'],
                                      data_source['pdx'],
                                      data_source['py'],

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/20160420/a27d12f9/attachment.htm>


More information about the yt-svn mailing list