Hey Britton,
On Mon, Dec 2, 2013 at 10:15 AM, Britton Smith
Hi all,
Can someone point me to an example (docs, notebooks, emails, whatever) of defining a custom particle filter for yt-3.0? I'm trying to do this and I know I've seen discussion of this before, but I can't find where.
Yup. Here's an example: http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/534fd19b933e4a3... Looks like the nbviewer is down though. Sorry I haven't done much documenting of this. Particle filters and particle unions are two really cool things that are currently only in example form. Here's another example of how to define one: https://bitbucket.org/mornkr/agora-analysis-script/src/1200830cd1e8d7dc60f66... and you have to add this by name to each pf you open up: https://bitbucket.org/mornkr/agora-analysis-script/src/1200830cd1e8d7dc60f66... Note that you have to specify *all* the required filtering fields in the constructor for the function. -Matt
Thanks, Britton
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org