[yt-users] Filter halos that can't be calculated virial quantities

Britton Smith brittonsmith at gmail.com
Thu Aug 11 07:41:12 PDT 2016


Hi Jullian,

Excellent question!  I think the best way to do this without altering the
source code would be to create a filter that checks for the existence of
the profile file before trying to load them.  Below is an example of one I
coded up using the same logic for setting the filenames at the profile
callback.
http://paste.yt-project.org/show/6752/

If you add this to your script and either add the filter after you do the
profiling or before you load the profiles, this may do it.  Let us know if
you have any more questions.

Britton

On Mon, Aug 8, 2016 at 3:45 PM, Jullian Santos <jullianhbsantos at gmail.com>
wrote:

> Hi, folks,
>
> I have a small problem in halo analyses. I'm making a halo catalog with
> virial quantities, but some of the halos don't return a virial profiles and
> when I load the catalog and virial profile yt crash because the catalog has
> halos that don't have a profile file.
>
> How is the easiest way to add a filter to save only halos that can be
> calculated virial profiles?
>
> Thanks for the attention!
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160811/a215266d/attachment.htm>


More information about the yt-users mailing list