Hi Kenza,
Almost certainly, this is my fault. I suspect that I got confused
during the final days of the workshop last spring, and did not commit
the correct change.
Do you think that it's possible to fix this by including the code
you've included in your email? Or do we need to make more substantial
changes?
-Matt
On Mon, Jul 14, 2014 at 3:24 PM, Kenza Arraki
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?
All the best, Kenza _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org