[yt-users] Counting the number of cells

Britton Smith brittonsmith at gmail.com
Thu Jul 26 15:28:41 PDT 2012


Hi Devan,

You can do that in a couple ways.
On the command line:
yt stats <dataset>
or in a python session
from yt.mods import *
pf = load(<dataset>)
pf.h.print_stats()

Britton

On Thu, Jul 26, 2012 at 6:20 PM, Devan Conroy <
devan.conroy at student.fairfield.edu> wrote:

> Hi all,
>
> My name is Devan Conroy and I am working at SLAC as a summer intern in the
> SULI program with Jeff Oishi.  I am trying to figure out how to count
> the number of cells in the grid when loading in data.  I tried using
> (len(DataIn)), but got the error: object of type 'AMRRegion' has no len().
>
> Any suggestions?
>
> Thank you,
> Devan Conroy
>
> --
> Devan Conroy
> Fairfield University 2013
> Mathematics Major
> Computer Science/French Minor
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120726/a86b9843/attachment.htm>


More information about the yt-users mailing list