InsertionSortCollider - allowBiggerThanPeriod

Asked by agastya

Hi all,

I am trying to run this example file periodicSandPile.py I found in the Github repository, but I get the following error in terminal

Traceback (most recent call last):
  File "/usr/bin/yade", line 183, in runScript
    execfile(script,globals())
  File "pspile.py", line 33, in <module>
    InsertionSortCollider([Bo1_Box_Aabb(),Bo1_Sphere_Aabb()],allowBiggerThanPeriod=True),
AttributeError: No such attribute: allowBiggerThanPeriod.
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]

What is causing this error?

Thanks,
Agastya.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
Last query:
Last reply:
Revision history for this message
Best Jérôme Duriez (jduriez) said :
#1

Hi,

The cause is that the YADE version you're using includes an InsertionSortCollider engine which is not defined with a "allowBiggerThanPeriod" attribute, it seems.

Problem is: I can not reproduce your description with current yade version compiled from source, and current trunk/examples/PeriodicBoundaries/periodicSandPile.py. (I do not get any errror)

Which YADE version do you use ?

Please also paste the exact script you use (or swear to God / your favorite human being it's exactly https://github.com/yade/trunk/blob/master/examples/PeriodicBoundaries/periodicSandPile.py)

Jérôme

Revision history for this message
agastya (agastya10) said :
#2

Thanks Jérôme Duriez, that solved my question.