<html><body>
<p>2 new commits in yt:</p>
<p><a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOUAchk22Bra1uPzfcVEmVhjmBR0Xd4fD3pVn-2FmBxUXF1Q-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BNEC8-2FBDb7f-2FFuAwaAoCXwGA9Rg78h-2BLhm2A7p-2F7B5pyhrtzWEjmEDJ-2BWRT25xxSBHotBJgJ-2FxLfWMz8hwkEe3iFzWNtwkS7Ufyv1hZlWKFnm3TT-2FGuc1cUAuWBiLG6wWeG30VTaP4jN0HJDu1OKao-2F-2FzLRaN0UhvkyvX-2FsICw1Vwnfm4NEHGtYUHOkJ-2BvyVs-3D">https://bitbucket.org/yt_analysis/yt/commits/ba537a082b93/</a> Changeset:   ba537a082b93 Branch:      yt User:        xarthisius Date:        2016-03-22 02:38:46+00:00 Summary:     Drop units from tight loop in _integrate_through_brick Affected #:  1 file</p>
<p>diff -r de823c10fed9f0b5fd4acf0512c45fc7d9cc491a -r ba537a082b939d99286d80583eaed0ec76052695 yt/visualization/streamlines.py --- a/yt/visualization/streamlines.py +++ b/yt/visualization/streamlines.py @@ -168,9 +168,11 @@</p>
<pre>         if self.get_magnitude:
self.magnitudes = self.comm.mpi_allreduce(
    self.magnitudes, op='sum')</pre>
<p>– +</p>
<pre>     def _integrate_through_brick(self, node, stream, step,
periodic=False, mag=None):</pre>
<p>+        LE = self.ds.domain_left_edge.d +        RE = self.ds.domain_right_edge.d</p>
<pre>         while (step > 1):
self.volume.get_brick_data(node)
brick = node.data</pre>
<p>@@ -183,13 +185,14 @@</p>
<pre>brick.integrate_streamline(
    stream[-step+1], self.direction*self.dx, marr)
mag[-step+1] = marr[0]</pre>
<p>–</p>
<ul><li><p>if np.any(stream[-step+1,:] <= self.ds.domain_left_edge) | \</p></li>
<li><p>np.any(stream[-step+1,:] >= self.ds.domain_right_edge):</p></li></ul>
<p>+ +            cur_stream = stream[-step+1, :] +            if np.sum(np.logical_or(cur_stream < LE, cur_stream >= RE)):</p>
<pre>                return 0
</pre>
<ul><li><p>if np.any(stream[-step+1,:] < node.get_left_edge()) | \</p></li>
<li><p>np.any(stream[-step+1,:] >= node.get_right_edge()):</p></li></ul>
<p>+            nLE = node.get_left_edge() +            nRE = node.get_right_edge() +            if np.sum(np.logical_or(cur_stream < nLE, cur_stream >= nRE)):</p>
<pre>    return step-1
step -= 1
         return step</pre>
<p><a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOU35mN8twSTI1Gi7VsPekIpMUswTuj9bKnpbC0mpd3P4I-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BNEC8-2FBDb7f-2FFuAwaAoCXwGA9Rg78h-2BLhm2A7p-2F7B5p3eBiGwRtI-2BsQmKODkXmnZ2kByAuWL3-2BdP1cfUJIjAg3HHzwKwNKGgYjKRz17OWw5buFVQDZRWNyWBh9tTxQ4fqjRodEkDXNIKk5eT682RWsxyPxEKLCrVp91ABXTNVm-2FCn5nh6-2FvYoOQme6rwr3mRQ-3D">https://bitbucket.org/yt_analysis/yt/commits/7538e9cb964c/</a> Changeset:   7538e9cb964c Branch:      yt User:        ngoldbaum Date:        2016-03-23 20:52:08+00:00 Summary:     Merged in xarthisius/yt (pull request #2063)</p>
<p>[opt] Drop units from tight loop in _integrate_through_brick Affected #:  1 file</p>
<p>diff -r b00711a542af2b45a03e6aec8ee35ee83b0d3ccc -r 7538e9cb964c701a9bef8dcb3a788119997b97a8 yt/visualization/streamlines.py --- a/yt/visualization/streamlines.py +++ b/yt/visualization/streamlines.py @@ -168,9 +168,11 @@</p>
<pre>         if self.get_magnitude:
self.magnitudes = self.comm.mpi_allreduce(
    self.magnitudes, op='sum')</pre>
<p>– +</p>
<pre>     def _integrate_through_brick(self, node, stream, step,
periodic=False, mag=None):</pre>
<p>+        LE = self.ds.domain_left_edge.d +        RE = self.ds.domain_right_edge.d</p>
<pre>         while (step > 1):
self.volume.get_brick_data(node)
brick = node.data</pre>
<p>@@ -183,13 +185,14 @@</p>
<pre>brick.integrate_streamline(
    stream[-step+1], self.direction*self.dx, marr)
mag[-step+1] = marr[0]</pre>
<p>–</p>
<ul><li><p>if np.any(stream[-step+1,:] <= self.ds.domain_left_edge) | \</p></li>
<li><p>np.any(stream[-step+1,:] >= self.ds.domain_right_edge):</p></li></ul>
<p>+ +            cur_stream = stream[-step+1, :] +            if np.sum(np.logical_or(cur_stream < LE, cur_stream >= RE)):</p>
<pre>                return 0
</pre>
<ul><li><p>if np.any(stream[-step+1,:] < node.get_left_edge()) | \</p></li>
<li><p>np.any(stream[-step+1,:] >= node.get_right_edge()):</p></li></ul>
<p>+            nLE = node.get_left_edge() +            nRE = node.get_right_edge() +            if np.sum(np.logical_or(cur_stream < nLE, cur_stream >= nRE)):</p>
<pre>    return step-1
step -= 1
         return step</pre>
<p>Repository URL: <a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BI0v8SbQq-2B8-2FZaaHaJT85r_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BNEC8-2FBDb7f-2FFuAwaAoCXwGA9Rg78h-2BLhm2A7p-2F7B5p-2BKx9mdJ6dG5ivZGgUZMPP-2Br57KC46L6xCKR0dSP2gKFqEu5JiCINBnGQNRJ9I3b4JX8PdKPPu30kGSP-2FoarX8x1BMSmXQcXnzxlNOeI2X5GtvjyeT6xnu-2Fm4OJqb-2Fe3hmEpEcF6y1j9jGfP-2FcZiW8M-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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BNEC8-2FBDb7f-2FFuAwaAoCXwGA9Rg78h-2BLhm2A7p-2F7B5p55cnsREx1EuWFtHLTZCZNMAZJTcQAZ8cb5VNmsY7lroWV3SxjpZAaol26DcjibTHttkt9ImzJ-2Fv3bBeXsY84f5qR0qZFuWzfz4-2FSvVzZv-2BLAPcgQwLCsONXL0I28dmU7gLoVarFgk-2FCeTmoIfIBrUo-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>