[yt-users] adding things to a dataset

Matthew Turk matthewturk at gmail.com
Mon Aug 1 08:44:56 PDT 2016


Hi Molly,

If this is a tipsy dataset, you can specify it on read-in:

http://yt-project.org/docs/dev/examining/loading_data.html#specifying-tipsy-cosmological-parameters-and-setting-default-units

Not sure about other types of frontends.

On Mon, Aug 1, 2016 at 8:42 AM, Molly Peeples <molly at stsci.edu> wrote:

> Hi folks,
>
> I have a dataset I’d like to add omega_baryon to (I want to use the
> baryon_overdensity derived field, but it seems to only have omega_matter
> and omega_lambda, but I know what omega_baryon is). It’s not a derived
> field; it’s just a number (not sure what the yt-lingo for it is!)…
>
> I tried doing ds.omega_baryon = 0.048, but I still get
>
>
>
> /Users/molly/anaconda2/envs/astroconda/lib/python2.7/site-packages/yt/fields/derived_field.pyc
> in __call__(self, data)
>
>     277                 doesnt_have.append(p)
>
>     278         if len(doesnt_have) > 0:
>
> --> 279             raise NeedsParameter(doesnt_have)
>
>     280         return True
>
>     281
>
>
> NeedsParameter: (['omega_baryon'])
>
>
> when I try to plot using baryon_overdensity. Suggestions?
>
> Thanks,
> —Molly
>
> _______________________________________________
> 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/20160801/b9d7b014/attachment-0001.htm>


More information about the yt-users mailing list