[yt-users] YT-3.0 - quick question - teething problems....

Britton Smith brittonsmith at gmail.com
Mon Sep 15 04:03:36 PDT 2014


What changeset of yt are you on?  What do you get with "yt instinfo"?

On Mon, Sep 15, 2014 at 11:57 AM, John Regan <johnanthonyregan at gmail.com>
wrote:

> It 50% works in that case.
>
> load works but ProfilePlot fails!
>
>  File "test.py", line 9, in <module>
>     prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
> NameError: name 'ProfilePlot' is not defined
>
> Totally confused :)
>
> On Mon, Sep 15, 2014 at 1:54 PM, Britton Smith <brittonsmith at gmail.com>
> wrote:
>
>> Hi John,
>>
>> D'oh, sorry, that's what I get for trying to answer emails before enough
>> coffee.
>>
>> Question, if you do "from yt.mods import *" and remove the yt from
>> yt.load and yt.ProfilePlot, do things work?
>>
>> Britton
>>
>> On Mon, Sep 15, 2014 at 10:56 AM, John Regan <johnanthonyregan at gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm having some teething problems with 3.0.
>>> It seems that I have a conflict somewhere but I can't see where. For
>>> example I have a very simple script which is doing weird things
>>>
>>> #Simple simple script
>>> import yt
>>> filename = "....../RD0000/RD0000"
>>> ds = yt.load(filename)
>>>
>>>
>>> This fails with:
>>>
>>> File "test.py", line 6, in <module>
>>>     ds = yt.load(filename)
>>> AttributeError: 'module' object has no attribute 'load'
>>>
>>> If instead I change the script to be:
>>>
>>> #Simple simple script
>>> from yt.mods import *
>>> filename = "......../RD0000/RD0000"
>>> ds = load(filename)
>>> sp = ds.h.sphere('max', (10, 'kpc'))
>>> prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
>>>
>>> This now loads the file but fails on:
>>>  File "test.py", line 9, in <module>
>>>     prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
>>> NameError: name 'ProfilePlot' is not defined
>>>
>>>
>>> Any ideas what's happening here?
>>>
>>> Cheers,
>>> John
>>>
>>>
>>> (yt-x86_64)[regan at taito-login3 RT]$ yt instinfo
>>>
>>> yt module located at:
>>>     /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0
>>>
>>> The current version of the code is:
>>>
>>> ---
>>> 38fff02747ca
>>> ---
>>>
>>> This installation CAN be automatically updated.
>>> yt dependencies were last updated on
>>> Mon Sep 15 12:40:51 EEST 2014
>>>
>>>
>>> (yt-x86_64)[regan at taito-login3 RT]$ which pyyt
>>> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin/pyyt
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140915/054b789d/attachment.html>


More information about the yt-users mailing list