[yt-users] yt.extensions.EnzoSimulation gorne
Elizabeth Tasker
taskere at mcmaster.ca
Fri Oct 29 11:20:43 PDT 2010
Hi Jeff,
I think it might be enzo 1.7, but inspired by your comment I
controversially checked the code and found
import yt.extensions.enzo_simulation as ES
works.
Thanks, Elizabeth
j s oishi wrote:
> Hi Elizabeth,
>
> Are you on yt-2.0? If so, then it should be
>
> from yt.analysis_modules.api import EnzoSimulation as ES
>
> j
>
> On Fri, Oct 29, 2010 at 8:16 AM, Elizabeth Tasker <taskere at mcmaster.ca> wrote:
>
>> Hi,
>>
>> Yt is denying the existence of "yt.extensions.EnzoSimulation ":
>>
>> ImportError Traceback (most recent call last)
>>
>> /home/taskere/yt/src/yt-hg/scripts/iyt in <module>()
>> 2
>> 3 from yt.mods import *
>> ----> 4 import yt.extensions.EnzoSimulation as ES
>> 5
>> 6 ETot = []
>>
>> ImportError: No module named EnzoSimulation
>>
>>
>> Did it change name? I want to iterate through all outputs:
>>
>> es = ES.EnzoSimulation("SedovBlastAMR.enzo", initial_time=0.0,
>> final_time=0.1)
>>
>> for output in es.allOutputs
>> # do barbaric calculations at all output times etc.
>>
>>
>> Thanks, 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
>
More information about the yt-users
mailing list