avg Num Interactions
Hi,
My code [1] to store the coordination number was working pretty well some months ago, but today I tried again and I got an error [2]
Any idea of what does this error mean?
[1]
def AutoData():
plot.addData(
O.run(1000,
plot.plots=
plot.plot()
plot.saveDataTx
[2]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "size1densoF4.py", line 150, in AutoData
plot.
File "/usr/lib/
nums,
Boost.Python.
yade.
did not match C++ signature:
bodyNumInte
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "size1densoF4.py", line 150, in AutoData
plot.
File "/usr/lib/
nums,
Boost.Python.
yade.
did not match C++ signature:
bodyNumInte
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luis Barbosa
- Solved:
- 2018-12-15
- Last query:
- 2018-12-15
- Last reply:
- 2018-12-13
This question was reopened
- 2018-12-07 by Luis Barbosa
Robert Caulk (rcaulk) said : | #1 |
I suspect this is a side effect of a recent improvement to the code [1]. bodyNumInteract
[1] https:/
[2]https:/
Luis Barbosa (luis-pires-b) said : | #2 |
Ok, let me know when you fix it.
Thanks,
Luis
Robert Caulk (rcaulk) said : | #3 |
if you want to track the progress:
Jérôme Duriez (jduriez) said : | #4 |
Hi Luis,
This error meant that your call to avgNumInteracti
In more details bodyNumInteract
Hence the error, as my 1st paragraph said.
I just committed changes [4] that solve the bug, as well as the other following example maybe closer to your needs:
#########
O.bodies.
O.bodies.
O.bodies.
# 3 spheres example to avoid the "nan" case in avgNumInteracti
O.step()
print ''
print 'Avg Num Interactions', avgNumInteracti
######### (This could have been your MWE ;-) )
When and how these changes will land in your computer depend on your use of YADE. Thanks for reporting anyway,
Jérôme
[1] See File "/usr/lib/
[2] https:/
[3] https:/
[4] https:/
Luis Barbosa (luis-pires-b) said : | #5 |
Nice job Jérôme.
but what do you mean by "When and how these changes will land in your computer depend on your use of YADE" ?
It will be automatically updated or do I need to change something?
Cheers,
Luis
Jérôme Duriez (jduriez) said : | #6 |
I do not know since you did not tell us which YADE you're using ;-)
yadedaily ? compiled from sources ?
If it's yadedaily (looking at your error messages), you will get the update once
1. a new version of yadedaily package (including the changes of today's commit) is released to the world
2. you locally update your packages to adopt this update
Luis Barbosa (luis-pires-b) said : | #7 |
Ok, tanks.
Luis Barbosa (luis-pires-b) said : | #8 |
Hello everyone,
After the last yadedaily update in 12-05, the same initial problem reported here still persists.
Am I doing something wrong or is avgNumInteracti
Cheers,
Luis
Hi, Could you please provide more accurate version number and a minimal working script?
Bruno
Can't reproduce:
bchareyre@
Welcome to Yade 2018.02b-
Yade [1]: nums,counts=
Yade [2]:
Luis Barbosa (luis-pires-b) said : | #11 |
Hi Bruno I am using yadedaily Yade 2018.02b-
Here follows the script:
#!/usr/bin/python
# -*- coding: utf-8 -*-
from yade import plot
from yade import pack
from yade import utils
from yade import bodiesHandling
import math
import random
# Spheres#
O.materials.
ag=O.bodies.append(
# pack.regularHexa(
pack.randomDen
(pack.
)
#######
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffne
NewtonIntegra
PyRunner(
]
#######
def AutoData():
plot.addData(
O.run(2000,
plot.plots=
plot.plot()
plot.saveDataTx
from yade import qt
qt.View()
qt.Controller()
Thank you,
Luis
Luis Barbosa (luis-pires-b) said : | #12 |
Followed above
I couldn't trace back 2018.02b-
Could you update yadedaily and report new version number (and confirm the bug)?
Bruno
Luis Barbosa (luis-pires-b) said : | #14 |
Hi Bruno,
Just to confirm, the last version you mean is:
yadedaily_
Right?
Luis
Yes, it is currently the latest.
Bruno
Luis Barbosa (luis-pires-b) said : | #16 |
Tks