[yt-users] question about parameter file
Matthew Turk
matthewturk at gmail.com
Thu Feb 23 13:40:13 PST 2012
Hi Ali,
pf["Density"] returns the conversion factor yt uses internally. This
is a confusing point -- the only conversions that are meaningful are
time and length; all of the fields are returned pre-converted.
This is a confusing point, and earlier this week on the dev mailing
list we decided to deprecate access to the parameter file via
["whatever"] so as to reduce potential tripping points:
http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/2012-February/001830.html
(and subsequent messages in that thread)
-Matt
PS Welcome to yt-users!
On Thu, Feb 23, 2012 at 4:35 PM, Ali Snedden <asnedden at nd.edu> wrote:
> Hello,
>
> If load in a parameter file ( pf = load("~/data/Enzo/DD0252/DD0252")) and
> access the dictionary via pf['Density'] it returns a value of
> 2.49711e-30. I realize that if I enter pf['mpc'] it returns the conversion
> factor to go from system units to physical units. If yt keeps everything in
> cgs, then what conversion factor (if any) does pf['Density'] return?
> Thanks!
>
>
>
>
>
>
>
> ~ali
>
> _______________________________________________
> 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