[yt-users] yt-2.x: derived fields and field parameters

Brian O'Shea bwoshea at gmail.com
Fri Nov 21 13:41:15 PST 2014


Hi Matt,

Ouch.  Thanks for looking into it.  I don't have a ton of confidence in
being able to fix it in yt-2.x, given available time, so I guess we have to
upgrade to yt-3.  I'll give it a try there and will certainly bug the
mailing list if I have any questions.  Thanks again!

--Brian


On Fri, Nov 21, 2014 at 4:17 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Brian,
>
> I've taken a look at it, and this is a genuine bug -- depending on how
> the fields are accessed, field parameters either will or won't get
> passed in.  My guess is that if you were to access the field in teh
> data object itself, it would work (just a guess though).  This has
> been completely rewritten in the 3.0 line, and unfortunately we do not
> have the ability to apply sweeping fixes to yt-2.x at this time.  If
> you are able to find the location to apply this fix, please do so and
> we'll happily accept!  I think it will require using something like
> @restore_grid_state while computing inside the derived quantity.
>
> -Matt
>
> On Fri, Nov 21, 2014 at 3:02 PM, Brian O'Shea <bwoshea at gmail.com> wrote:
> > Hi yt-users,
> >
> > I am trying to do something that feels like it ought to be simple, but I
> > simply can't figure it out.  I am using yt-2.x, and I want to create a
> > derived field based on a given center and a radial profile, which I have
> > pre-calculated and have sent to the derived field using
> set_field_parameter.
> > This does not seem to work particularly well - I can't seem to get these
> > field parameters, and even my simplest example of a derived field breaks
> > down.  Here's a copy of my script:
> >
> >     http://paste.yt-project.org/show/5221/
> >
> > which dies with this traceback:
> >
> >     http://paste.yt-project.org/show/5222/
> >
> > It seems that I can't even access the center that I pass in, much less
> work
> > with the radial profile.  I suspect I'm doing something dumb, but reading
> > the documentation on creating derived fields does not seem to be giving
> me
> > the clues I need to figure out what I'm doing wrong.
> >
> > Thanks!
> >
> > Brian
> >
> >
> >
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
> _______________________________________________
> 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/20141121/0bfa2275/attachment.htm>


More information about the yt-users mailing list