← Back to team overview

yade-users team mailing list archive

Re: [Question #239133]: IndexError

 

Question #239133 on Yade changed:
https://answers.launchpad.net/yade/+question/239133

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,
I have just found, that the script examples/concrete/uniax.py itself is not
working. Is this also your case?
cheers
Jan


2013/11/13 pingyang.1019@xxxxxxx <question239133@xxxxxxxxxxxxxxxxxxxxx>

> New question #239133 on Yade:
> https://answers.launchpad.net/yade/+question/239133
>
> Hi  teachers
>      I run uniax-post.py , but there is a error. I do not know  how to
> modify .
>
> Running script /home/py/test/tunnel/uniax-post.py
> Traceback (most recent call last):
>   File "bins/yade-pingyang", line 162, in runScript
>     execfile(script,globals())
>   File "/home/py/test/tunnel/uniax-post.py", line 28, in <module>
>     pylab.figure();
> ax,map=post2d.plot(post2d.data(extractDmg,flattener,stDev=2e-3))
>   File "/home/py/yade/lib/yade-pingyang/py/yade/post2d.py", line 277, in
> plot
>
> ct=axes.contour(data['x'],data['y'],data['val'],colors='k',origin='lower',extend='both')
>   File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 7381, in
> contour
>     return mcontour.QuadContourSet(self, *args, **kwargs)
>   File "/usr/lib/pymodules/python2.7/matplotlib/contour.py", line 1112, in
> __init__
>     ContourSet.__init__(self, ax, *args, **kwargs)
>   File "/usr/lib/pymodules/python2.7/matplotlib/contour.py", line 704, in
> __init__
>     self._process_levels()
>   File "/usr/lib/pymodules/python2.7/matplotlib/contour.py", line 911, in
> _process_levels
>     self._levels.insert(0, min(self.levels[0],self.zmin) - 1)
> IndexError: index out of bounds
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.