Ok, this last commit should fix the problem.<br><br>+        virial = {}<br>
+        if (len(profile[overdensity_<div id=":vi" class="ArwC7c ckChnd">field]) < 2):<br>
+            for field in fields:<br>
+                virial[field] = 0.0<br>
+            return virial</div><br>I don't have data to test it, so if you find that it doesn't work, feel free to respond to this thread.<br><br><div class="gmail_quote">On Sun, Jan 25, 2009 at 4:47 PM, Stephen Skory <span dir="ltr"><<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
> Thanks for finding that!<br>
<br>
You're welcome. I guess you're just used to running your code on actual high-resolution science-quality datasets, while I'm just playing around with crummy rough test cases.<br>
<div><div></div><div class="Wj3C7c"><br>
 _______________________________________________________<br>
<a href="mailto:sskory@physics.ucsd.edu">sskory@physics.ucsd.edu</a>           o__  Stephen Skory<br>
<a href="http://physics.ucsd.edu/%7Esskory/" target="_blank">http://physics.ucsd.edu/~sskory/</a> _.>/ _Graduate Student<br>
________________________________(_)_\(_)_______________<br>
_______________________________________________<br>
Yt-dev mailing list<br>
<a href="mailto:Yt-dev@lists.spacepope.org">Yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br>