[yt-svn] commit/yt: xarthisius: Fix typo in _CellVolume

Bitbucket commits-noreply at bitbucket.org
Thu Dec 13 12:06:13 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/8e4516ee0b0e/
changeset:   8e4516ee0b0e
branch:      yt
user:        xarthisius
date:        2012-12-13 21:04:05
summary:     Fix typo in _CellVolume
affected #:  1 file

diff -r dbba2cffd0c3a6efe73e78109751618b82c01863 -r 8e4516ee0b0eca807c860aa7bba0448dabd83be3 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -506,11 +506,11 @@
 def _CellVolume(field, data):
     if data['dx'].size == 1:
         try:
-            return data['dx']*data['dy']*data['dx']*\
+            return data['dx'] * data['dy'] * data['dz'] * \
                 np.ones(data.ActiveDimensions, dtype='float64')
         except AttributeError:
-            return data['dx']*data['dy']*data['dx']
-    return data["dx"]*data["dy"]*data["dz"]
+            return data['dx'] * data['dy'] * data['dz']
+    return data["dx"] * data["dy"] * data["dz"]
 def _ConvertCellVolumeMpc(data):
     return data.convert("mpc")**3.0
 def _ConvertCellVolumeCGS(data):

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.



More information about the yt-svn mailing list