<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/a3f0bf738e65/">https://bitbucket.org/yt_analysis/yt/commits/a3f0bf738e65/</a> Changeset: a3f0bf738e65 Branch: yt User: ngoldbaum Date: 2016-04-19 20:39:43+00:00 Summary: Merged in MatthewTurk/yt (pull request #2116)</p>
<p>Ensuring mask for dt in octree is in correct order. Closes #1175 Affected #: 2 files</p>
<p>diff -r d8eec89b2c86f300ce9cfb0205b97cefb5dd0c45 -r a3f0bf738e6566959d9144adc81c2a918099615b yt/data_objects/octree_subset.py --- a/yt/data_objects/octree_subset.py +++ b/yt/data_objects/octree_subset.py @@ -125,7 +125,7 @@</p>
<pre># memory usage.
dts, ts = [], []
for sl, mask in self.select_blocks(dobj.selector):</pre>
<ul><li><p>sl.child_mask = mask</p></li></ul>
<p>+ sl.child_mask = np.asfortranarray(mask)</p>
<pre>dt, t = dobj.selector.get_dt(sl)
dts.append(dt)
ts.append(t)</pre>
<p>diff -r d8eec89b2c86f300ce9cfb0205b97cefb5dd0c45 -r a3f0bf738e6566959d9144adc81c2a918099615b yt/data_objects/tests/test_rays.py --- a/yt/data_objects/tests/test_rays.py +++ b/yt/data_objects/tests/test_rays.py @@ -1,9 +1,12 @@</p>
<pre>import numpy as np
</pre>
<p>+from yt import \ + load</p>
<pre>from yt.testing import \
fake_random_ds, \
assert_equal, \</pre>
<ul><li><p>assert_rel_equal</p></li></ul>
<p>+ assert_rel_equal, \ + requires_file</p>
<pre>from yt.units.yt_array import \
uconcatenate
</pre>
<p>@@ -48,3 +51,12 @@</p>
<pre>yield assert_rel_equal, my_ray['density'][ray_cells].sum(), \
my_all['density'][my_cells].sum(), 14
yield assert_rel_equal, my_ray['dts'].sum(), unitary, 14</pre>
<p>+ +@requires_file('GadgetDiskGalaxy/snapshot_200.hdf5') +def test_ray_in_particle_octree(): + ds = load('GadgetDiskGalaxy/snapshot_200.hdf5') + start = ds.arr([31995.63476562, 31473.6640625, 28969.88671875], “code_length”) + end = ds.arr([31995.63476562, 31473.6640625, 29219.88671875], “code_length”) + ray = ds.ray(start, end) + ray["t"] + assert_equal(ray["dts"].sum(dtype="f8"), 1.0)</p>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27D1gM8WAh-2F86ND4Ie5ardPYsU5GdHSD5A5Oy-2FYGvTRAN6ZjAVLTbdmFQ0NROmGCtXplTdQpp7dpqxvslwvJrfLLg5a-2B-2BK2UakT2BF6n5Iboedh12qJ0YCODvir5HF1Mg-2B5U7Umb1tjIA-2FwyG4q-2FyBI6XlS8EryEwHo-2FutzL-2FoBzG1x2xad-2FrSejdveTTmzAUD4-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>