[Yt-svn] commit/yt: MatthewTurk: Removing a negation in a conditional for projecting without weights.
Bitbucket
commits-noreply at bitbucket.org
Mon Aug 15 07:42:12 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/5f8245bc1f9b/
changeset: 5f8245bc1f9b
branch: yt
user: MatthewTurk
date: 2011-08-15 16:41:55
summary: Removing a negation in a conditional for projecting without weights.
affected #: 1 file (71 bytes)
--- a/yt/data_objects/data_containers.py Mon Aug 15 08:58:37 2011 -0400
+++ b/yt/data_objects/data_containers.py Mon Aug 15 10:41:55 2011 -0400
@@ -1614,10 +1614,9 @@
dxs.append(na.ones(nvals.shape[0], dtype='float64') * ds)
coord_data = na.concatenate(coord_data, axis=0).transpose()
field_data = na.concatenate(field_data, axis=0).transpose()
- if self._weight is not None:
+ if self._weight is None:
dls, convs = self._get_dls(self._grids[0], fields)
- # We always get one extra for the weighting field
- field_data *= convs[:-1]
+ field_data *= convs
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