<html><body>
<p>2 new commits in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/b669562c5450/">https://bitbucket.org/yt_analysis/yt/commits/b669562c5450/</a> Changeset:   b669562c5450 Branch:      yt User:        brittonsmith Date:        2016-05-09 16:59:48+00:00 Summary:     Checking if returned field has units in volume-weighted smoothed fields. Affected #:  1 file</p>
<p>diff -r 7f7ccbc9329e14578e120835c0365f2e271e72cf -r b669562c54509c4ecd558c38feece18b395d7a58 yt/fields/particle_fields.py --- a/yt/fields/particle_fields.py +++ b/yt/fields/particle_fields.py @@ -783,7 +783,8 @@</p>
<pre>mass = data[ptype, mass_name].in_base(unit_system.name)
dens = data[ptype, density_name].in_base(unit_system.name)
quan = data[ptype, smoothed_field]</pre>
<ul><li><p>quan = quan.convert_to_units(field_units)</p></li></ul>
<p>+        if hasattr(quan, "units"): +            quan = quan.convert_to_units(field_units)</p>
<pre>         if smoothing_length_name is None:
hsml = np.zeros(quan.shape, dtype='float64') - 1</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/87f89bdc4c23/">https://bitbucket.org/yt_analysis/yt/commits/87f89bdc4c23/</a> Changeset:   87f89bdc4c23 Branch:      yt User:        MatthewTurk Date:        2016-05-11 18:28:35+00:00 Summary:     Merged in brittonsmith/yt (pull request #2164)</p>
<p>[BUGFIX] Checking if returned field has units in volume-weighted smoothed fields. Affected #:  1 file</p>
<p>diff -r 8b661ffb2b26c38a26c90e1c2854b9cb32bb9a34 -r 87f89bdc4c237e8319a35335c5f8875c517f63c8 yt/fields/particle_fields.py --- a/yt/fields/particle_fields.py +++ b/yt/fields/particle_fields.py @@ -783,7 +783,8 @@</p>
<pre>mass = data[ptype, mass_name].in_base(unit_system.name)
dens = data[ptype, density_name].in_base(unit_system.name)
quan = data[ptype, smoothed_field]</pre>
<ul><li><p>quan = quan.convert_to_units(field_units)</p></li></ul>
<p>+        if hasattr(quan, "units"): +            quan = quan.convert_to_units(field_units)</p>
<pre>         if smoothing_length_name is None:
hsml = np.zeros(quan.shape, dtype='float64') - 1</pre>
<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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27Db3CeoTvbMzGzXvf5TDUpL33no-2FnpVuAqVHo-2FXnh-2FBAtHop1OThXeZ5-2Bu94KqTwdrcgz-2FIgICtmiXpnYipsOGQYy6BjO2DTtxMeeC7awcEeoGmo-2BmGGAqxg-2Bk8pHL6GmfLgPZ27GyRBiOqtnvsa-2Fr9HaRfGM7BPCawZnsjJCA8zPI-2BaNoTplUQqMgKtorsJaM-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>