[yt-dev] Issue #958: Document detailed cuts on particle chunks (yt_analysis/yt)

Cameron Hummels issues-reply at bitbucket.org
Mon Dec 15 12:56:37 PST 2014


New issue 958: Document detailed cuts on particle chunks
https://bitbucket.org/yt_analysis/yt/issue/958/document-detailed-cuts-on-particle-chunks

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-fields


_______________________________________________
yt-dev mailing list
yt-dev at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org




More information about the yt-dev mailing list