<p>Hi Elizabeth, </p>
<p>You can do:</p>
<p>del ng[fieldname] </p>
<p>-Matt</p>
<div class="gmail_quote">On Dec 12, 2011 5:45 AM, "Elizabeth Tasker" <<a href="mailto:tasker@astro1.sci.hokudai.ac.jp">tasker@astro1.sci.hokudai.ac.jp</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Is there a way of deleting a single derived field from all grids?<br>
<br>
I seem to be having a problem with my derived field not being<br>
re-calculated for every element in a loop (it needs to be). Therefore,<br>
if I run the complete loop, I get an incorrect result for some of the<br>
elements which are totally fine if I tell the code to just calculate<br>
that element in a single sweep.<br>
<br>
I've tried deleting the individual elements that use that variable,<br>
but it doesn't seem to be enough, e.g.<br>
<br>
ng, nc = kd.locate_neighbors_from_position(nposn)<br>
.<br>
.<br>
.<br>
del ng<br>
<br>
<br>
Elizabeth<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>