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

Brian O'Shea bwoshea at gmail.com
Mon Aug 18 18:34:52 PDT 2014


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)

(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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140818/76fd7260/attachment.htm>


More information about the yt-users mailing list