Maybe you could try increasing the value of PROFILE_RADIUS_THRESHOLD in HaloProfiler.py.  Right now, it's set to 2, meaning that it will allow profiles for halos whose outer radii are only 2 times the inner radii.  That's probably too generous.  Even halos of that size should probably be ignored.<br>
<br>Britton<br><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 11:02 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.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;">
<div class="im">> So, how do I make it skip that halo? I see there is a len(sphere._grids) == 0 test, but this case there are two grids so it passes that.<br>
<br>
</div>I think the problem might be with the bounds.  If no points within the<br>
sphere satisfy the radius bounds, it will fail.  I will commit the<br>
changes in that patch I sent you and then we can insert a try/except<br>
block for the exception I added; that is the pragmatic solution, I<br>
think.  But I really, *really* think we need to figure out why the<br>
radius bounds are not giving us any points.<br>
<br>
-Matt<br>
<div><div></div><div class="h5">_______________________________________________<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>