[yt-dev] filtered_type kwarg in @particle_filter

Britton Smith brittonsmith at gmail.com
Tue Dec 3 10:48:01 PST 2013


Hi all,

I'm working with particle filters for the first time and I'm unclear on the
role of the filtered_type keyword.  For example, in the following script:
http://paste.yt-project.org/show/4099/
I define filters that should catch every single particle in an Enzo-3.0
dataset.  My understanding of the filtered_type keyword is that is
preselected which type of particles to pass through the filter.
In this dataset, I have the following particles:
Type           Number
DarkMatter  32768
CenOstriker 10543
Total            43311

So, my understanding is that
print ad['finest_all', 'particle_mass'].size
should print 43311 and
print ad['finest_all', 'particle_mass'].size
should print 32768.

However, they both print 43311.  Is this a bug or am I not understanding
what filtered_type is supposed to do?

Britton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20131203/180157c5/attachment.htm>


More information about the yt-dev mailing list