<html><body>
<p>1 new commit in yt:</p>
<p><a href="http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOU35mN8twSTI1Gi7VsPekIpMUswTuj9bKnpbC0mpd3P4I-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27CCJEexGM2WTORe9TTa6cibFsQq8VIzu6nZs2PWx3m-2FfvzsrddqpY7bdJtP6B0fFbWNFcFEjeKL-2FLeCX9w62dtwj0ucrXuuRvk0UTwxOaSBERfSneKgmz20YeKV2gZG4abIarc9RhHIqmhcthGrs6OAJ8VRM-2FWar5zfrs9zQ-2FAn-2FgzAnZacws9ApCWPZszYnO0-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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27CCJEexGM2WTORe9TTa6cibFsQq8VIzu6nZs2PWx3m-2FfhU6x0Ud-2FVKDJ2MIyGrLyrPMeN91o-2FQcNhOGn5SN3LKRbtvOr26-2BYV4CmaaavNKlHZXlctIq8lBQ5enjZI8F4dXxzOUV0OEda62P6FvJAWOLrG1GjXvSBE-2FZ0qKYL3aZ-2Bu1wHjIzT81JXHPbLD5L3oY-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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27CCJEexGM2WTORe9TTa6cibFsQq8VIzu6nZs2PWx3m-2FfoLvmPS5SPx68alXUDrGdpaD39Lj9YfOG5GlKNV0jvfZV5hju99D91C806WZ3QyYWHxouWGoBbBLtWsBeB8hVzAwohJohkwglgkhfvvslKiGcEqo9bSXq2h8e53sMNFTrR5FxqA-2FbP9nlhL5cJ2YZzw-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>