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

Bitbucket commits-noreply at bitbucket.org
Mon Oct 15 18:24:42 PDT 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/36a7c57aa39c/
changeset:   36a7c57aa39c
branch:      yt
user:        ngoldbaum
date:        2012-10-16 03:15:52
summary:     Bugfix for VelocityMagnitude
affected #:  1 file

diff -r 075253179b15993fbc59c1ee05c4fbe6dce1e615 -r 36a7c57aa39c8202c9df7f4deab897890ad5d736 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -191,8 +191,8 @@
 
 def _VelocityMagnitude(field, data):
     """M{|v|}"""
-    velocities = obtain_rv_vec(data).transpose()
-    return np.sqrt(np.sum(velocities**2,axis=-1))
+    velocities = obtain_rv_vec(data)
+    return np.sqrt(np.sum(velocities**2,axis=0))
 add_field("VelocityMagnitude", function=_VelocityMagnitude,
           take_log=False, units=r"\rm{cm}/\rm{s}")
 



https://bitbucket.org/yt_analysis/yt/changeset/529288f3186b/
changeset:   529288f3186b
branch:      yt
user:        ngoldbaum
date:        2012-10-16 03:24:13
summary:     Fixing a bug in the definition of VelocityMagnitude.
affected #:  1 file

diff -r 36a7c57aa39c8202c9df7f4deab897890ad5d736 -r 529288f3186b70dc06a2f1360e9b2e94d7a09fe9 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -241,7 +241,7 @@
     center = data.get_field_parameter("center")
     normal = data.get_field_parameter("normal")
     
-    coords = obtain_rvec(data).transepose()
+    coords = obtain_rvec(data).transpose()
 
     return get_sph_theta(coords, normal)

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