I just ran into this as well and just pushed the fix (2e69ac29577d) of adding:
from yt.mods import add_field
to the top of spectral_frequency_integrator.py.
On Thu, Dec 2, 2010 at 4:36 PM, Stephen Skory <email@example.com>
I'm getting an error like this in the spectral frequency integrator:
74 'Temperature' : na.log10(data["Temperature"])}
75 return 10**interp(dd)
---> 76 add_field(name, function=frequency_bin_field,
NameError: global name 'add_field' is not defined
Was something missed in this file when it was converted to the new API scheme? I've already added a "import numpy as na" to it, so I'm guessing this is the case. If I'm correct, what is missing? Thanks!
510.621.3687 (google voice)
yt-users mailing list