[yt-svn] commit/yt: MatthewTurk: We do not want to divide by count here.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Jul 18 10:40:10 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/894d44f837d4/
Changeset:   894d44f837d4
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-18 19:38:33
Summary:     We do not want to divide by count here.
Affected #:  1 file

diff -r 0dd4980aa84e80807a030f12b77f07ae9902a935 -r 894d44f837d4d259550bb7b741091424226375b7 yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -127,7 +127,7 @@
             for obj in chunk.objs:
                 count += selector.count_octs(obj.oct_handler, obj.domain_id)
         for ptype in ptf:
-            psize[ptype] = self.pf.n_ref * count / float(obj.nz)
+            psize[ptype] = self.pf.n_ref * count
         return psize
 
     def _read_particle_fields(self, chunks, ptf, selector):

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