← Back to team overview

yade-users team mailing list archive

Re: [Question #185098]: InteractionLocator.macroAroundPt module

 

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

Jan Stránský proposed the following answer:
Hi Rinaldi,

The problem is (as error message indicates) in indentation in your script.
Read some text about python indentation and try to correct it on the line
that causes the error. If you still get IndentationError, please send the
script in attachement so as we can help with the error localization and
correction :-)

Jan
Dne 18.1.2012 17:24 "Rinaldi Giuseppe" <question185098@xxxxxxxxxxxxxxxxxxxxx>
napsal(a):

> Question #185098 on Yade changed:
> https://answers.launchpad.net/yade/+question/185098
>
>    Status: Answered => Open
>
> Rinaldi Giuseppe is still having a problem:
> first of all thank you for your quick response!
>
> if I use eudoxos without underscore I get the following:
>
> Running script simpleShear.py
> Traceback (most recent call last):
>  File "/usr/bin/yade-daily", line 183, in runScript
>    execfile(script,globals())
>  File "simpleShear.py", line 142
>
>  pointstress=eudoxos.InteractionLocator.macroAroundPt((0.00001,0.00001,0.00001),0.00001,[-1])
>   ^
> IndentationError: unexpected indent
> [[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both,
> F9 generator, F8 plot. ]]
>
>
>
> if add the line from yade import _eudoxos (as Emanuele Catalano suggests)
> I get :
>
>
>
> Yade [1]:
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last)
>
> /usr/lib/yade-daily/py/yade/__init__.pyc in <module>()
> ----> 1
>      2
>      3
>      4
>      5
>
> /usr/lib/yade-daily/py/yade/__init__.pyc in saveData()
>    142
>    143
> --> 144
> pointstress=_eudoxos.InteractionLocator.macroAroundPt((0.00001,0.00001,0.00001),0.00001,[-1]),
>    145
>    146
>
> TypeError: unbound method Boost.Python.function object must be called
> with InteractionLocator instance as first argument (got tuple instance
> instead)
>
> Any ideas
>
> --
> 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.