New issue 958: Document detailed cuts on particle chunks https://bitbucket.org/yt_analysis/yt/issue/958/document-detailed-cuts-on-par...
Cameron Hummels:
This is a followup on a conversation from the yt-users email list:
Hi, Everybody-
I have some old code in which I pulled particle ids from grid objects, and I'm porting it to yt3.0.
My old code used a "cut mask" defined like the following:
#!python
for grid in data._grids:
cut_mask= data._get_cut_mask(grid)
I see that grids is now handled through chunks, is there a modern equivalent of the cut_mask? Or, is there a new-and-improved method to get particle ids from complex objects?
The yt-3.0 equivalent using the chunking system looks like this:
http://nbviewer.ipython.org/gist/ngoldbaum/700d2235d24a5faf9d58
Perhaps a note about this functionality should go in the "Particle Filters" section of the docs? http://yt-project.org/docs/dev/analyzing/filtering.html#filtering-particle-f...
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org