<html><body>
<p>2 new commits in yt:</p>
<p><a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOUKFLnuUF2RkuhV4Pu6gZREDlSYY0g7otY1tBEW3m1YVY-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALl0yxp-2FL6VeZYeTP6R8ULfXPdlfSHLNaNtOCPLjDWaQolCw65J2eOTTSDUf49EZJa6DiZHhFG2vJ6j-2FNNYfExMzaxVRTQf8tyFvAQpowj90z1oRdVO1MxizvpieNzH6U-2BZuvQvQI2l30GHg2I2ucTlq37zNSmFJS807re-2BLT4Y-2F1WGd-2FCkNdD69aPlWYTYPk-3D">https://bitbucket.org/yt_analysis/yt/commits/ea705325a186/</a> Changeset:   ea705325a186 Branch:      yt User:        MatthewTurk Date:        2016-03-17 18:37:16+00:00 Summary:     Fix some types of octree block traversal.</p>
<p>When either empty block is encountered or when the block is of shape (1,1,1), special case the traversal such that the buffers are of the right shape.  This can show up most frequently in ARTIO simulations where the root grid is fully-refined, or where data objects touch root grid objects but only the refined ones.  Or some other cases I'm not 100% sure of. Affected #:  1 file</p>
<p>diff -r 9f8461c82f40422fce303ee43132a0c8b7afbc65 -r ea705325a186113cfdd230ccf8174e0b632921a7 yt/data_objects/octree_subset.py --- a/yt/data_objects/octree_subset.py +++ b/yt/data_objects/octree_subset.py @@ -118,7 +118,7 @@</p>
<pre>mask = self.oct_handler.mask(selector, domain_id = self.domain_id)
slicer = OctreeSubsetBlockSlice(self)
for i, sl in slicer:</pre>
<ul><li><p>yield sl, mask[i,…]</p></li></ul>
<p>+            yield sl, np.atleast_3d(mask[i,…])</p>
<pre>def select_tcoords(self, dobj):
    # These will not be pre-allocated, which can be a problem for speed and</pre>
<p>@@ -129,6 +129,8 @@</p>
<pre>dt, t = dobj.selector.get_dt(sl)
dts.append(dt)
ts.append(t)</pre>
<p>+        if len(dts) == len(ts) == 0: +            return np.empty(0, “f8"), np.empty(0, "f8”)</p>
<pre>        return np.concatenate(dts), np.concatenate(ts)

    @property</pre>
<p><a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOU7BTw6GywY3-2BWcPFH-2FTA4ffVg68ZGJh0nsA-2FYhwaNs0k-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALl0yxp-2FL6VeZYeTP6R8ULfXPdlfSHLNaNtOCPLjDWaRQRGFO8242PowmHiIf21w4a-2BGAMSCStpyGGYnBDMbiTG09193LqzGyQwOhyZQlSPy32pqb5dZDFe8-2FJkqqDmCxcF3qBZuhOc25UR96wDvz3hXltYgAQT4nSfuV5d-2FZ4SGZdmjdKo4VlQ3a2hlGR-2B00-3D">https://bitbucket.org/yt_analysis/yt/commits/293bfec508a7/</a> Changeset:   293bfec508a7 Branch:      yt User:        ngoldbaum Date:        2016-03-23 20:48:54+00:00 Summary:     Merged in MatthewTurk/yt (pull request #2049)</p>
<p>Fix some types of octree block traversal. Affected #:  1 file</p>
<p>diff -r b6563d32400e520b26ccbb6793998537d91e61af -r 293bfec508a7e0d143791ffd2f67eb974638bd0e yt/data_objects/octree_subset.py --- a/yt/data_objects/octree_subset.py +++ b/yt/data_objects/octree_subset.py @@ -118,7 +118,7 @@</p>
<pre>mask = self.oct_handler.mask(selector, domain_id = self.domain_id)
slicer = OctreeSubsetBlockSlice(self)
for i, sl in slicer:</pre>
<ul><li><p>yield sl, mask[i,…]</p></li></ul>
<p>+            yield sl, np.atleast_3d(mask[i,…])</p>
<pre>def select_tcoords(self, dobj):
    # These will not be pre-allocated, which can be a problem for speed and</pre>
<p>@@ -129,6 +129,8 @@</p>
<pre>dt, t = dobj.selector.get_dt(sl)
dts.append(dt)
ts.append(t)</pre>
<p>+        if len(dts) == len(ts) == 0: +            return np.empty(0, “f8"), np.empty(0, "f8”)</p>
<pre>        return np.concatenate(dts), np.concatenate(ts)

    @property</pre>
<p>Repository URL: <a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BI0v8SbQq-2B8-2FZaaHaJT85r_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALl0yxp-2FL6VeZYeTP6R8ULfXPdlfSHLNaNtOCPLjDWadMDDXbvZfBHSevKx1jYaDVSAvocraMDndfEO7Osri1fC2k368JeOYT8y-2Be-2FERSzcSX4xM4PsJMgNJ8cy-2BdFNn3VUf9TiGN-2FOk0OrokYPtYu-2FJCQEJTfArGCKMNASgFCFFzwqOzre4-2BOSvfIfdFZtqo-3D">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALl0yxp-2FL6VeZYeTP6R8ULfXPdlfSHLNaNtOCPLjDWaU9oSyPUOpNpaqttcED2DLHVlgSpe69FVHhWN2TMOFXApM1fegnZ8YndW505Fg-2BwVuyd1Ai2BsXFUrM50CtdQasWSP0Urer8-2FPOLwW68CmjLfhZy-2BESNYwunXn4jKTdUDnAzZ68jFPwmWaHP7TaL7P4-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>