[yt-users] Best way to count particles?

Matthew Turk matthewturk at gmail.com
Fri Oct 12 15:24:22 PDT 2012


Hi everyone (especially Stephen),

What's the best way to get the number of particles of a particular
type from a data object?

i.e., the derived quantity way of doing:

(dd["particle_type"] == something).sum()

Thanks,

Matt



More information about the yt-users mailing list