problems occur when using plotDirections()

Asked by xiao tang

Dear pioneers/peers,

How are you!

I am a freshman on using YADE as my research tool. Currently, I am following the tutorial of triaxial tests (i.e. sricpt-session1.py). The simulation seems no problem at all. However, if I just add a sentence after consolidation as "from yade import utils
plotDirections()", the error confronts that is described below:

Traceback (most recent call last):
  File "/usr/bin/yade", line 182, in runScript
    execfile(script,globals())
  File "./Documents/psd-plotDirections.py", line 142, in <module>
    plotDirections()
  File "/usr/lib/x86_64-linux-gnu/yade/py/yade/utils.py", line 544, in plotDirections
    d=utils.interactionAnglesHistogram(axis,mask=mask,bins=bins,aabb=aabb,sphSph=sphSph)
ArgumentError: Python argument types in
    yade._utils.interactionAnglesHistogram(int)
did not match C++ signature:
    interactionAnglesHistogram(int axis, int mask, unsigned long bins, boost::python::tuple aabb, bool sphSph, double minProjLen)

I have checked the "/usr/lib/x86_64-linux-gnu/yade/py/yade/utils.py" which is absolutely fine. Please give me some help.

Thanks & regards,
Clifford

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
xiao tang (xiaotang) said :
#1

ArgumentError Traceback (most recent call last)
/usr/bin/yade in <module>()
----> 1 plotDirections()

/usr/lib/x86_64-linux-gnu/yade/py/yade/utils.py in plotDirections(aabb, mask, bins, numHist, noShow, sphSph)
    542 from yade import utils
    543 for axis in [0,1,2]:
--> 544 d=utils.interactionAnglesHistogram(axis,mask=mask,bins=bins,aabb=aabb,sphSph=sphSph)
    545 fc=[0,0,0]; fc[axis]=1.
    546 subp=pylab.subplot(220+axis+1,polar=True);

ArgumentError: Python argument types in
    yade._utils.interactionAnglesHistogram(int)
did not match C++ signature:
    interactionAnglesHistogram(int axis, int mask, unsigned long bins, boost::python::tuple aabb, bool sphSph, double minProjLen)

The problem is still unsolved.

:-(

Revision history for this message
Jan Stránský (honzik) said :
#2

Hello Clifford,
please provide a MWE [1], otherwise we can only guess where the problem
could be
cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask

2016-10-14 11:07 GMT+02:00 xiao tang <email address hidden>:

> Question #403014 on Yade changed:
> https://answers.launchpad.net/yade/+question/403014
>
> xiao tang gave more information on the question:
> ArgumentError Traceback (most recent call last)
> /usr/bin/yade in <module>()
> ----> 1 plotDirections()
>
> /usr/lib/x86_64-linux-gnu/yade/py/yade/utils.py in plotDirections(aabb,
> mask, bins, numHist, noShow, sphSph)
> 542 from yade import utils
> 543 for axis in [0,1,2]:
> --> 544 d=utils.interactionAnglesHistogram(
> axis,mask=mask,bins=bins,aabb=aabb,sphSph=sphSph)
> 545 fc=[0,0,0]; fc[axis]=1.
> 546 subp=pylab.subplot(220+axis+1,polar=True);
>
> ArgumentError: Python argument types in
> yade._utils.interactionAnglesHistogram(int)
> did not match C++ signature:
> interactionAnglesHistogram(int axis, int mask, unsigned long bins,
> boost::python::tuple aabb, bool sphSph, double minProjLen)
>
>
> The problem is still unsolved.
>
> :-(
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
xiao tang (xiaotang) said :
#3

Hi Jan,

Thank you very much. Your kind guidance is appreciated.

Please be informed that I just directly used the session1 script from the triaxial tutorial (see https://apt-browse.org/browse/ubuntu/trusty/universe/i386/yade/1.07.0-2/file/usr/share/doc/yade/examples/triax-tutorial/script-session1.py)

And I just uncomment line 129 to 138 where an isotropic state has achieved for the numerical specimen.

After that, I typed/added this line: plotDirections() or utils.plotDirections(). Then the problem occurred as described above. Therefore, I tried to output the contact orientations and plot them in graph myself. Still I would to like to know what is the problem.

Best regards,
Clifford

Revision history for this message
Jan Stránský (honzik) said :
#4

Hi Clifford,
there was a bug, thanks for finding it.
It is fixed now on github. What version (how installed/compiled) of Yade do
you use (there are different ways how to fix it)?
cheers
Jan

2016-10-17 16:22 GMT+02:00 xiao tang <email address hidden>:

> Question #403014 on Yade changed:
> https://answers.launchpad.net/yade/+question/403014
>
> xiao tang posted a new comment:
> Hi Jan,
>
> Thank you very much. Your kind guidance is appreciated.
>
> Please be informed that I just directly used the session1 script from
> the triaxial tutorial (see https://apt-
> browse.org/browse/ubuntu/trusty/universe/i386/yade/1.
> 07.0-2/file/usr/share/doc/yade/examples
> /triax-tutorial/script-session1.py)
>
> And I just uncomment line 129 to 138 where an isotropic state has
> achieved for the numerical specimen.
>
> After that, I typed/added this line: plotDirections() or
> utils.plotDirections(). Then the problem occurred as described above.
> Therefore, I tried to output the contact orientations and plot them in
> graph myself. Still I would to like to know what is the problem.
>
> Best regards,
> Clifford
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
xiao tang (xiaotang) said :
#5

Dear Jan,

Thanks very much for your prompt reply.

The version of YADE on my Ubuntu 16.04 is the latest version 1.20 if I remember correctly as I am away from my Linux PC right now. Currently, I just used output the data and did post-analysis.

Thanks & regards,
Clifford

Can you help with this problem?

Provide an answer of your own, or ask xiao tang for more information if necessary.

To post a message you must log in.