[yt-users] Obtaining the current Enzo timestep from yt

Matthew Turk matthewturk at gmail.com
Mon Dec 2 15:13:37 PST 2013


Hi Roberto,

On Mon, Dec 2, 2013 at 6:10 PM, trobolo dinni
<trobolo.trobolo.dinni5 at gmail.com> wrote:
> Dear YT users,
>
> I would like to ask a simple question to which I was not able to find a
> solution.
>
> My Enzo parameters file does not have any Initialdt line saved, also if by
> reading the Enzo documentation at
> http://enzo.readthedocs.org/en/latest/parameters/initialization.html looks
> like the line should be there; and I would like to obtain the current
> timestep from the output using yt.
>
> I would like to ask if is there a way to do that or if there is some
> alternative solution.
>
> Thanks for the help,
>                                  Roberto

Weird that it's not there!  yt can get the cycle number if it's not.
You can see this and other parameters by looking at pf.parameters .
You can try using the "pprint" module to make it looks nice:

import pprint
pprint.pprint(pf.parameters)

-Matt

>
>
>
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list