[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Apr 20 11:05:37 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/fcd37022de61/
Changeset: fcd37022de61
Branch: yt
User: MatthewTurk
Date: 2016-04-19 15:15:44+00:00
Summary: Use axis names instead of dimensions for spherical pixelization
Affected #: 1 file
diff -r d8eec89b2c86f300ce9cfb0205b97cefb5dd0c45 -r fcd37022de61adc14ca7fb76dc957334a060a531 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'],
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/c4d07d6d/attachment.html>
More information about the yt-svn
mailing list