<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/8445fdf5ae15/">https://bitbucket.org/yt_analysis/yt/commits/8445fdf5ae15/</a> Changeset:   8445fdf5ae15 Branch:      yt User:        ngoldbaum Date:        2016-04-04 19:35:18+00:00 Summary:     Merged in xarthisius/yt (pull request #2103)</p>
<p>[flash] avoid circular dependency loop in abar field definition Affected #:  1 file</p>
<p>diff -r 395a07dcd3a54e1840f9ddab9a4b3ed49f780c28 -r 8445fdf5ae15434505312ef1616d910f1becb07b yt/frontends/flash/fields.py --- a/yt/frontends/flash/fields.py +++ b/yt/frontends/flash/fields.py @@ -151,12 +151,14 @@</p>
<pre>Na_code = data.ds.quan(Na, '1/code_mass')
return data["flash","dens"]*data["flash","sumy"]*Na_code
         self.add_field(('flash','nion'), function=_nion, units="code_length**-3")</pre>
<ul><li><p>def _abar(field, data):</p></li>
<li><p>try:</p></li>
<li><p>return data["flash","abar"]</p></li>
<li><p>except:</p></li>
<li><p>return 1.0/data["flash","sumy"]</p></li>
<li><p>self.add_field(("flash","abar"), function=_abar, units="1")</p></li></ul>
<p>+ +        if ("flash", “abar”) in self.field_list: +            self.add_output_field(("flash", “abar"), units="1”) +        else: +            def _abar(field, data): +                return 1.0 / data["flash","sumy"] +            self.add_field(("flash","abar"), function=_abar, units="1") +</p>
<pre>         def _number_density(fields,data):
return (data["nele"]+data["nion"])
         self.add_field(("gas","number_density"), function=_number_density,</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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27CjLb2yxHiTE8O1J7OyV4faJfpM2eToYTU-2BtIJE0xJWuwRa4eymFIKlkQgwe45eMsI6-2Ffg-2BFdYl8jKpRttdFsBkOz-2B3tRwTo-2BhuYUWP0anhloRyGAWXezi0coGhZ1ghZ26VPgEf6IfGiAkl8u8c8vrvSLOkKYRj34IAHKOLmM7RMHj4JfxGYIWxpCla-2Flfa4A8-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>