[yt-svn] commit/yt-3.0: xarthisius: [flash] fix typo in _coordTheta
Bitbucket
commits-noreply at bitbucket.org
Tue Aug 21 11:25:51 PDT 2012
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/changeset/544d6fe4efe4/
changeset: 544d6fe4efe4
branch: yt-3.0
user: xarthisius
date: 2012-08-21 20:22:45
summary: [flash] fix typo in _coordTheta
affected #: 1 file
diff -r 030d84e44e46b08358d4fb513a561e5c36b00fed -r 544d6fe4efe4bdc8421fddcbabe0c2f34c02fcdd yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -301,7 +301,7 @@
def _coordTheta(field, data):
dim = data.ActiveDimensions[2]
return (na.ones(data.ActiveDimensions, dtype='float64')
- * na.arange(data.ActiveDimensions[2])[None,:,None]
+ * na.arange(data.ActiveDimensions[2])[None,None,:]
+0.5) * data['dtheta'] + data.LeftEdge[2]
add_cyl_field('theta', function=_coordTheta, display_field=False,
validators=[ValidateSpatial(0)])
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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