[yt-users] Clear memory?

Elizabeth Tasker taskere at mcmaster.ca
Thu Mar 24 13:09:36 PDT 2011


Hi Matt,

So actually that didn't work. Below, I've not re-run the simulation but 
just updated my script to move the centre in "pc = PlotCollection(pf, 
center=[100,100,100])" to a new location.

bash-4.0$ ~/yt/yt-2/bin/iyt slice_yt.py

NeedsDataField                            Traceback (most recent call 
last)                                     

/1/home/taskere/yt/scripts/iyt in <module>()
     23     pf = load(fn)                  
     24     pc = PlotCollection(pf, center=[100,100,100])
---> 25     p = pc.add_slice("Density", 2)                
     26     
p.modify["grids"]()                                               
     27     p = pc.add_projection("Density", 2)    
etc

But if I do:

In [2]: exit()
Do you really want to exit ([y]/n)? y
bash-4.0$ rm -rf *yt
bash-4.0$ rm -rf *harr*
bash-4.0$ ~/yt/yt-2/bin/iyt slice_yt.py

Then everything works. I've attached my yt script for added excitement.

Elizabeth




Matthew Turk wrote:
> Hi Elizabeth,
>
> There should be a check in the .yt and .harray files for the
> modification time of the simulation using the CurrentTimeIdentifier.
> But if you are running into issues, this should prevent all the .yt
> and .harray files from being looked at:
>
> from yt.config import ytcfg; ytcfg["yt","serialize"] = "False"
>
> Note that this *must* go at the top of your script.
>
> -Matt
>
> On Thu, Mar 24, 2011 at 10:54 AM, Elizabeth Tasker <taskere at mcmaster.ca> wrote:
>   
>> Hi,
>>
>> Is there any way in yt to get a script to delete (or ignore) all the .yt and
>> .harray files and clear its memory? I run into errors when I'm re-doing a
>> plot or I've re-run the simulation and over-written the last data set I
>> looked at with yt. I have to exit yt, delete the above files by hand and
>> restart, which is a bit of a pain.
>>
>> Elizabeth
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>     
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: slice_yt.py
Type: text/x-python
Size: 1044 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110324/9d049a79/attachment.py>


More information about the yt-users mailing list