[yt-users] Clearing a derived field from all grids

Matthew Turk matthewturk at gmail.com
Mon Dec 12 03:18:40 PST 2011


Hi Elizabeth,

You can do:

del ng[fieldname]

-Matt
On Dec 12, 2011 5:45 AM, "Elizabeth Tasker" <tasker at astro1.sci.hokudai.ac.jp>
wrote:

> Hi,
>
> Is there a way of deleting a single derived field from all grids?
>
> I seem to be having a problem with my derived field not being
> re-calculated for every element in a loop (it needs to be). Therefore,
> if I run the complete loop, I get an incorrect result for some of the
> elements which are totally fine if I tell the code to just calculate
> that element in a single sweep.
>
> I've tried deleting the individual elements that use that variable,
> but it doesn't seem to be enough, e.g.
>
> ng, nc = kd.locate_neighbors_from_position(nposn)
> .
> .
> .
> del ng
>
>
> Elizabeth
> _______________________________________________
> 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/20111212/cdb2a626/attachment.html>


More information about the yt-users mailing list