<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi Stephen,<div><br></div><div>I just ran into this as well and just pushed the fix (<span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">2e69ac29577d)</span> of adding:</div>

<div><br></div><div>from yt.mods import add_field</div><div><br></div><div>to the top of spectral_frequency_integrator.py.</div><div><br></div><div>Sam</div></span><br><div class="gmail_quote">On Thu, Dec 2, 2010 at 4:36 PM, Stephen Skory <span dir="ltr"><<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Hi all,<br>
<br>
I'm getting an error like this in the spectral frequency integrator:<br>
<br>
     74                   'Temperature'   : na.log10(data["Temperature"])}<br>
     75             return 10**interp(dd)<br>
---> 76         add_field(name, function=frequency_bin_field,<br>
     77                         projection_conversion="cm",<br>
     78                         units=r"\rm{ergs}\/\rm{cm}^{-3}\/\rm{s}^{-1}",<br>
<br>
NameError: global name 'add_field' is not defined<br>
<br>
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!<br>


<font color="#888888"><br>
<br>
Stephen Skory<br>
<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a><br>
<a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
510.621.3687 (google voice)<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</font></blockquote></div><br>