<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 1:24 PM, Kenza Arraki <span dir="ltr"><<a href="mailto:karraki@nmsu.edu" target="_blank">karraki@nmsu.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
For ART particle data yt returns incorrect mass values. I believe this<br>
is something Matt had solved in March by dividing mass units by ng**3<br>
for particle mass data.<br>
<br>
Miguel Rocha brought this to my attention and I have been able to<br>
reproduce the problem on the public ART dataset (D9p_500).<br>
<a href="http://paste.yt-project.org/show/4908/" target="_blank">http://paste.yt-project.org/show/4908/</a><br>
<br>
<br>
I thought we had included the following in art/frontends/fields.py,<br>
but am unable to find it now.<br>
<br>
    def setup_particle_fields(self, ptype):<br>
        self.add_field((ptype, "particle_mass"),<br>
function=_particle_mass, units="code_mass", particle_type=True)<br>
        super(ARTFieldInfo, self).setup_particle_fields(ptype)<br>
<br>
Why would this have been working at some point and now it is broken again?<br></blockquote><div><br></div><div>It's possible this was fixed in someone's personal version of the code, but then never actually PRd in the main repo. It looks like the Art frontend was most recently updated in March.</div>

<div> </div><div>If you know where to insert the fix, pull requests are more than welcome, particularly if you are an ART code user - none of the frequent contributors are.</div><div><br></div><div>We will try to fix the issues you've just updated before the yt-3.0 release.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
All the best,<br>
Kenza<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div><br></div></div>