[yt-dev] ART-NMSU particle mass units

Nathan Goldbaum nathan12343 at gmail.com
Mon Jul 14 13:30:12 PDT 2014


On Mon, Jul 14, 2014 at 1:24 PM, Kenza Arraki <karraki at nmsu.edu> wrote:

> Hi,
>
> For ART particle data yt returns incorrect mass values. I believe this
> is something Matt had solved in March by dividing mass units by ng**3
> for particle mass data.
>
> Miguel Rocha brought this to my attention and I have been able to
> reproduce the problem on the public ART dataset (D9p_500).
> http://paste.yt-project.org/show/4908/
>
>
> I thought we had included the following in art/frontends/fields.py,
> but am unable to find it now.
>
>     def setup_particle_fields(self, ptype):
>         self.add_field((ptype, "particle_mass"),
> function=_particle_mass, units="code_mass", particle_type=True)
>         super(ARTFieldInfo, self).setup_particle_fields(ptype)
>
> Why would this have been working at some point and now it is broken again?
>

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.

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.

We will try to fix the issues you've just updated before the yt-3.0 release.


>
> All the best,
> Kenza
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140714/d83e54ce/attachment.html>


More information about the yt-dev mailing list