[yt-users] need to set omega_baryon in yt-3

Matthew Turk matthewturk at gmail.com
Mon Aug 18 18:36:38 PDT 2014


Hi Brian,

On Mon, Aug 18, 2014 at 8:34 PM, Brian O'Shea <bwoshea at gmail.com> wrote:
> Hi folks,
>
> I am using yt-3, and attempting to make a ProjectionPlot of the derived
> field 'baryon_overdensity' (using an Enzo dataset). The line in question is
> this:
>
> plot1 =
> yt.ProjectionPlot(ds,'z',"baryon_overdensity",weight_field="baryon_overdensity",center=c,data_source=my_region)

You should set it via "field_parameters = {'omega_baryon':
your_favorite_cosmology}" in this function call.  There was some
recent back and forth about this in a pull request and whether or not
it goes into my_region, but this should certainly work.

-Matt

>
> (with c, my_region being previously defined).  When I do this, it complains:
>
> yt.fields.field_exceptions.NeedsParameter: (['omega_baryon'])
>
> which certainly makes sense from a physical perspective, and which Enzo
> doesn't natively carry around. I tried to set this by hand:
>
>
> _______________________________________________
> 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