Hi Elizabeth,

You can do:

del ng[fieldname]

-Matt

On Dec 12, 2011 5:45 AM, "Elizabeth Tasker" <tasker@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@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org