
Hi,
Simpler question (I think!)
Can I force yt to re-calculate a derived field? I'd like to call dd["Radius"] muliple times, but changing the position of the center field parameter in the same script. Currently, yt knows it's already calculated dd["Radius"] once and doesn't repeat it, even though "center" has changed. Ideally, I'd like to clear just that field, so yt doesn't go and recalculate any other fields.
Elizabeth

Hi Elizabeth,
You should be able to do:
del dd["Radius"]
-Matt
On Thu, Nov 10, 2011 at 3:47 AM, Elizabeth Tasker tasker@astro1.sci.hokudai.ac.jp wrote:
Hi,
Simpler question (I think!)
Can I force yt to re-calculate a derived field? I'd like to call dd["Radius"] muliple times, but changing the position of the center field parameter in the same script. Currently, yt knows it's already calculated dd["Radius"] once and doesn't repeat it, even though "center" has changed. Ideally, I'd like to clear just that field, so yt doesn't go and recalculate any other fields.
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Oh. Right -- yes, that works!
On Nov 10, 2011, at 8:15 PM, Matthew Turk wrote:
Hi Elizabeth,
You should be able to do:
del dd["Radius"]
-Matt
On Thu, Nov 10, 2011 at 3:47 AM, Elizabeth Tasker tasker@astro1.sci.hokudai.ac.jp wrote:
Hi,
Simpler question (I think!)
Can I force yt to re-calculate a derived field? I'd like to call dd["Radius"] muliple times, but changing the position of the center field parameter in the same script. Currently, yt knows it's already calculated dd["Radius"] once and doesn't repeat it, even though "center" has changed. Ideally, I'd like to clear just that field, so yt doesn't go and recalculate any other fields.
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Elizabeth Tasker
-
Matthew Turk