Issue #718: Convenience method to get the number of particles in a simulation (yt_analysis/yt)
Nov. 6, 2013
5:20 p.m.
New issue 718: Convenience method to get the number of particles in a simulation https://bitbucket.org/yt_analysis/yt/issue/718/convenience-method-to-get-the... Nathan Goldbaum: It should be possible to do something like: ``` #!python pf = load(...) nparticles = pf.h.number_of_particles ``` Right now (as far as I can tell with enzo data) one needs to iterate over all the grids, accumulating particle counts along the way. This data has to be known once the hierarchy is parsed so I think it should be straightforward to add this. What do you think @MatthewTurk?
4384
Age (days ago)
4384
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nathan Goldbaum