[yt-users] NameError: name 'SlicePlot' is not defined
Reju Sam John
rejusamjohn at gmail.com
Fri Feb 22 11:28:15 PST 2013
Dear Nathan,
this is the result..
[csurajit at c0 cosmorun5]$ yt instinfo
Traceback (most recent call last):
File "/data1/software/cosmology/bin/yt", line 5, in <module>
from pkg_resources import load_entry_point
File
"/data1/software/cosmology/surajit/software/cosmo/yt_analysis-yt-ca6e536c15a6/doc/yt-x86_64/lib/python2.6/site-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py",
line 16, in <module>
import sys, os, zipimport, time, re, imp, types
ImportError: No module named time
[csurajit at c0 cosmorun5]$
On Fri, Feb 22, 2013 at 2:24 PM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:
> Hi Reju,
>
> I'm not completely sure why SlicePlot isn't in your namespace. Can you do
> the following at the command line:
>
> $ yt instinfo
>
> and reply with a paste of the result?
>
> -Nathan
>
>
> On Fri, Feb 22, 2013 at 10:53 AM, Reju Sam John <rejusamjohn at gmail.com>wrote:
>
>> Hello all,
>> I the following code
>>
>> from yt.mods import *
>> pf = load("RD0015/RedshiftOutput0015")
>> p= SlicePlot(pf,2,'Density','c',(20,'kpc'))
>> p.save('sliceplot')
>>
>>
>> it is showing an error
>>
>> *Traceback (most recent call last):
>> File "sliceplot_Density.py", line 3, in <module>
>> p = SlicePlot(pf,2,'Density','c',(20,'kpc'))
>> NameError: name 'SlicePlot' is not defined*
>>
>>
>> what is the reason? is there files we have to import.
>> --
>> Reju Sam John
>>
>> _______________________________________________
>> 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
>
>
--
Reju Sam John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130222/11180168/attachment.html>
More information about the yt-users
mailing list