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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 21 13:39:27 PDT 2014


4 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/288af3bb9f9d/
Changeset:   288af3bb9f9d
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-18 15:47:57
Summary:     Fixing amrkdtree_downsampling.py.
Affected #:  1 file

diff -r 6c0273b42d198d3ac270238feed0e5a5ace9899c -r 288af3bb9f9d90097db1027662bd2f0f0798f76c doc/source/cookbook/amrkdtree_downsampling.py
--- a/doc/source/cookbook/amrkdtree_downsampling.py
+++ b/doc/source/cookbook/amrkdtree_downsampling.py
@@ -33,7 +33,7 @@
 # generate a low resolution version of the AMRKDTree and pass that in to the
 # camera.  We do this by specifying a maximum refinement level of 3.
 
-kd_low_res = AMRKDTree(ds, max_level=3)
+kd_low_res = AMRKDTree(ds, max_level=6)
 print kd_low_res.count_volume()
 print kd_low_res.count_cells()
 


https://bitbucket.org/yt_analysis/yt/commits/fc57b38c3fa0/
Changeset:   fc57b38c3fa0
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-18 22:48:36
Summary:     Disabling _count_particles_chunks for Stream for now.
Affected #:  1 file

diff -r 288af3bb9f9d90097db1027662bd2f0f0798f76c -r fc57b38c3fa0ecf9c27827161d9e3873df7442ec yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -117,7 +117,17 @@
                               f[ptype, "particle_position_y"],
                               f[ptype, "particle_position_z"])
             
-    def _count_particles_chunks(self, chunks, ptf, selector):
+    def __count_particles_chunks(self, chunks, ptf, selector):
+        # DISABLED
+        # I have left this in here, but disabled, because of two competing
+        # problems:
+        #   * The IndexedOctreeSubsetSelector currently selects *all* particles
+        #   * Slicing a deposited field thus throws an error, since the octree
+        #     estimate fails.
+        #   * BUT, it provides considerable speedup in some situations for
+        #     stream datasets.
+        # So, pending its re-enabling, we'll leave it here.
+        # 
         # This is allowed to over-estimate.  We probably *will*, too, because
         # we're going to count *all* of the particles, not just individual
         # types.


https://bitbucket.org/yt_analysis/yt/commits/180b5aa1b328/
Changeset:   180b5aa1b328
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-20 16:19:25
Summary:     Fixing comment.
Affected #:  1 file

diff -r fc57b38c3fa0ecf9c27827161d9e3873df7442ec -r 180b5aa1b32891514965700ebf966c26a724261d doc/source/cookbook/amrkdtree_downsampling.py
--- a/doc/source/cookbook/amrkdtree_downsampling.py
+++ b/doc/source/cookbook/amrkdtree_downsampling.py
@@ -31,7 +31,7 @@
 # This rendering is okay, but lets say I'd like to improve it, and I don't want
 # to spend the time rendering the high resolution data.  What we can do is
 # generate a low resolution version of the AMRKDTree and pass that in to the
-# camera.  We do this by specifying a maximum refinement level of 3.
+# camera.  We do this by specifying a maximum refinement level of 6.
 
 kd_low_res = AMRKDTree(ds, max_level=6)
 print kd_low_res.count_volume()


https://bitbucket.org/yt_analysis/yt/commits/603f8fbde5e9/
Changeset:   603f8fbde5e9
Branch:      yt-3.0
User:        chummels
Date:        2014-07-21 22:39:21
Summary:     Merged in MatthewTurk/yt/yt-3.0 (pull request #1038)

Fix particle chunks and amrkdtree_downsampling recipe
Affected #:  2 files

diff -r c97c0f6168fd2c6f1e35b6f63cbcaec18cced1f5 -r 603f8fbde5e92daf218f282bd4498e228aaab437 doc/source/cookbook/amrkdtree_downsampling.py
--- a/doc/source/cookbook/amrkdtree_downsampling.py
+++ b/doc/source/cookbook/amrkdtree_downsampling.py
@@ -31,9 +31,9 @@
 # This rendering is okay, but lets say I'd like to improve it, and I don't want
 # to spend the time rendering the high resolution data.  What we can do is
 # generate a low resolution version of the AMRKDTree and pass that in to the
-# camera.  We do this by specifying a maximum refinement level of 3.
+# camera.  We do this by specifying a maximum refinement level of 6.
 
-kd_low_res = AMRKDTree(ds, max_level=3)
+kd_low_res = AMRKDTree(ds, max_level=6)
 print kd_low_res.count_volume()
 print kd_low_res.count_cells()
 

diff -r c97c0f6168fd2c6f1e35b6f63cbcaec18cced1f5 -r 603f8fbde5e92daf218f282bd4498e228aaab437 yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -119,7 +119,17 @@
                               f[ptype, "particle_position_y"],
                               f[ptype, "particle_position_z"])
             
-    def _count_particles_chunks(self, chunks, ptf, selector):
+    def __count_particles_chunks(self, chunks, ptf, selector):
+        # DISABLED
+        # I have left this in here, but disabled, because of two competing
+        # problems:
+        #   * The IndexedOctreeSubsetSelector currently selects *all* particles
+        #   * Slicing a deposited field thus throws an error, since the octree
+        #     estimate fails.
+        #   * BUT, it provides considerable speedup in some situations for
+        #     stream datasets.
+        # So, pending its re-enabling, we'll leave it here.
+        # 
         # This is allowed to over-estimate.  We probably *will*, too, because
         # we're going to count *all* of the particles, not just individual
         # types.

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