Hi Molly,<div><br></div><div>Looks like there was a missing import.  It should be fixed in now in 6160341d2e8f.</div><div><br></div><div>Best,</div><div>Sam<br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 7:17 PM, Molly Peeples <span dir="ltr"><<a href="mailto:molly@astro.ucla.edu">molly@astro.ucla.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Matt,<br>
<br>
I think I'm getting a similar thing; I updated yt and now I'm getting<br>
"global name 'ytcfg' is not defined" when I call PlotCollection.  I've<br>
tried the removing what's in ~/.yt/ and including the<br>
ytcfg["yt","serialize"] = "False" but the error is the same.  I put a<br>
copy of the script and the error at<br>
<a href="http://paste.enzotools.org/show/1540/" target="_blank">http://paste.enzotools.org/show/1540/</a><br>
<br>
Thanks,<br>
<font color="#888888">--Molly<br>
</font><div><div></div><div class="h5"><br>
On Thu, Mar 24, 2011 at 1:24 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
> Hi Elizabeth,<br>
><br>
> My mistake; .harrays were not respecting "serialize".  Fixed in hg.<br>
><br>
> -Matt<br>
><br>
> On Thu, Mar 24, 2011 at 4:09 PM, Elizabeth Tasker <<a href="mailto:taskere@mcmaster.ca">taskere@mcmaster.ca</a>> wrote:<br>
>> Hi Matt,<br>
>><br>
>> So actually that didn't work. Below, I've not re-run the simulation but just<br>
>> updated my script to move the centre in "pc = PlotCollection(pf,<br>
>> center=[100,100,100])" to a new location.<br>
>><br>
>> bash-4.0$ ~/yt/yt-2/bin/iyt slice_yt.py<br>
>><br>
>> NeedsDataField                            Traceback (most recent call last)<br>
>><br>
>> /1/home/taskere/yt/scripts/iyt in <module>()<br>
>>    23     pf = load(fn)                      24     pc = PlotCollection(pf,<br>
>> center=[100,100,100])<br>
>> ---> 25     p = pc.add_slice("Density", 2)                    26<br>
>> p.modify["grids"]()                                                   27<br>
>> p = pc.add_projection("Density", 2)    etc<br>
>><br>
>> But if I do:<br>
>><br>
>> In [2]: exit()<br>
>> Do you really want to exit ([y]/n)? y<br>
>> bash-4.0$ rm -rf *yt<br>
>> bash-4.0$ rm -rf *harr*<br>
>> bash-4.0$ ~/yt/yt-2/bin/iyt slice_yt.py<br>
>><br>
>> Then everything works. I've attached my yt script for added excitement.<br>
>><br>
>> Elizabeth<br>
>><br>
>><br>
>><br>
>><br>
>> Matthew Turk wrote:<br>
>>><br>
>>> Hi Elizabeth,<br>
>>><br>
>>> There should be a check in the .yt and .harray files for the<br>
>>> modification time of the simulation using the CurrentTimeIdentifier.<br>
>>> But if you are running into issues, this should prevent all the .yt<br>
>>> and .harray files from being looked at:<br>
>>><br>
>>> from yt.config import ytcfg; ytcfg["yt","serialize"] = "False"<br>
>>><br>
>>> Note that this *must* go at the top of your script.<br>
>>><br>
>>> -Matt<br>
>>><br>
>>> On Thu, Mar 24, 2011 at 10:54 AM, Elizabeth Tasker <<a href="mailto:taskere@mcmaster.ca">taskere@mcmaster.ca</a>><br>
>>> wrote:<br>
>>><br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> Is there any way in yt to get a script to delete (or ignore) all the .yt<br>
>>>> and<br>
>>>> .harray files and clear its memory? I run into errors when I'm re-doing a<br>
>>>> plot or I've re-run the simulation and over-written the last data set I<br>
>>>> looked at with yt. I have to exit yt, delete the above files by hand and<br>
>>>> restart, which is a bit of a pain.<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>
>>>><br>
>>>><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>
>>><br>
>><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>
>><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>
><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>
</div></div></blockquote></div><br></div>