[yt-users] _pdensity_pyx method not defined in yt 2.0

Matthew Turk matthewturk at gmail.com
Tue Jan 18 11:04:23 PST 2011


Hi Chris,

This was a leftover from a merge; the field was doubly defined.  It's
been fixed in the repository, and it only affected "stable".

-Matt

On Tue, Jan 18, 2011 at 1:57 PM, Chris Malone <chris.m.malone at gmail.com> wrote:
> Hi,
>
> I just performed a clean install of yt 2.0, and upon importing from yt.mods
> I get a complaint about the undefined field function _pdensity_pyx in
> yt.data_objects.universal_fields.  In particular, it looks like some
> spurious code has been left around at line 807 of universal_fields.py
>
> add_field("particle_density",
> function=_pdensity_pyx,
>           validators=[ValidateSpatial(0)],
> convert_function=_convertDensity,
>           display_name=r"\mathrm{Particle}\/\mathrm{Density})")
>
>
> Indeed, grep'ing for that function in the yt directory turns up no results
> other than in universal_fields.py.  Commenting out these lines fixes the
> problem, but this should probably be changed in the repo unless someone has
> that _pdensity_pyx method handy and wants to push it to the 2.0 branch.
>
> Chris
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>



More information about the yt-users mailing list