[yt-users] _pdensity_pyx method not defined in yt 2.0
Chris Malone
chris.m.malone at gmail.com
Tue Jan 18 10:57:56 PST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110118/c3222817/attachment.htm>
More information about the yt-users
mailing list