<div dir="ltr">Hi Matt and Devin,<div><br></div><div>I can't say what happened, but both Matt's and my script are now giving the output I expected.  Matt, I was on the same changeset as you.  The only thing that has changed is the seat under me (office to home) and perhaps a return to sanity from a brief vacation.  Sorry for the noise, everyone.</div>
<div><br></div><div>Britton</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 7:07 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Britton,<br>
<div class="im"><br>
<br>
<br>
On Tue, Dec 3, 2013 at 1:56 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
> Hi Britton,<br>
><br>
> On Tue, Dec 3, 2013 at 1:48 PM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I'm working with particle filters for the first time and I'm unclear on the<br>
>> role of the filtered_type keyword.  For example, in the following script:<br>
>> <a href="http://paste.yt-project.org/show/4099/" target="_blank">http://paste.yt-project.org/show/4099/</a><br>
>> I define filters that should catch every single particle in an Enzo-3.0<br>
>> dataset.  My understanding of the filtered_type keyword is that is<br>
>> preselected which type of particles to pass through the filter.<br>
>> In this dataset, I have the following particles:<br>
>> Type           Number<br>
>> DarkMatter  32768<br>
>> CenOstriker 10543<br>
>> Total            43311<br>
>><br>
>> So, my understanding is that<br>
>> print ad['finest_all', 'particle_mass'].size<br>
>> should print 43311 and<br>
>> print ad['finest_all', 'particle_mass'].size<br>
>> should print 32768.<br>
>><br>
>> However, they both print 43311.  Is this a bug or am I not understanding<br>
>> what filtered_type is supposed to do?<br>
<br>
</div>I modified your example slightly:<br>
<br>
<a href="http://paste.yt-project.org/show/4100/" target="_blank">http://paste.yt-project.org/show/4100/</a><br>
<br>
and got output that looks right to me.<br>
<br>
CenOstriker 824<br>
DarkMatter 32765<br>
all 33589<br>
finest 32765<br>
finest_all 33589<br>
finest 32765<br>
finest_all 33589<br>
<br>
I'm on 500acd8e6551; which one are you on?  (If it's the units<br>
refactor, that has not been updated yet to the latest tip of yt-3.0.)<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Can you upload the dataset -- which I think will be a good,<br>
> representative example of Enzo-3.0 -- to the data directory?<br>
><br>
> -Matt<br>
><br>
>><br>
>> Britton<br>
>><br>
>> _______________________________________________<br>
>> yt-dev mailing list<br>
>> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
>><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br></div>