[yt-svn] commit/yt: MatthewTurk: Bug fix for projecting multiple fields at a time.

Bitbucket commits-noreply at bitbucket.org
Mon Jul 30 10:21:17 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/9e9c1bfe9e8e/
changeset:   9e9c1bfe9e8e
branch:      yt
user:        MatthewTurk
date:        2012-07-30 19:21:06
summary:     Bug fix for projecting multiple fields at a time.
affected #:  1 file

diff -r 512ec2dec7bc8e857686c252ca77a9dca031f2d6 -r 9e9c1bfe9e8ea9fbbb0c163439f2dab8b27860d6 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -1804,7 +1804,7 @@
         field_data = na.concatenate(field_data, axis=0).transpose()
         if self._weight is None:
             dls, convs = self._get_dls(self._grids[0], fields)
-            field_data *= convs
+            field_data *= convs[:,None]
         weight_data = na.concatenate(weight_data, axis=0).transpose()
         dxs = na.concatenate(dxs, axis=0).transpose()
         # We now convert to half-widths and center-points

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