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