← Back to team overview

yade-users team mailing list archive

[Question #676284]: avg Num Interactions

 

New question #676284 on Yade:
https://answers.launchpad.net/yade/+question/676284

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(CN=avgNumInteractions(cutoff=0.0,skipFree=True,considerClumps=False), i=O.iter) #this is line 150
O.run(1000,True)#1700000
plot.plots={'i':('CN')}
plot.plot()
plot.saveDataTxt('CN.txt')

[2]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "size1densoF4.py", line 150, in AutoData
    plot.addData(CN=avgNumInteractions(cutoff=0.0,skipFree=True,considerClumps=False), i=O.iter)
  File "/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/utils.py", line 438, in avgNumInteractions
    nums,counts=bodyNumInteractionsHistogram(aabbExtrema(cutoff))
Boost.Python.ArgumentError: Python argument types in
    yade._utils.bodyNumInteractionsHistogram(list)
did not match C++ signature:
    bodyNumInteractionsHistogram(boost::python::tuple aabb)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "size1densoF4.py", line 150, in AutoData
    plot.addData(CN=avgNumInteractions(cutoff=0.0,skipFree=True,considerClumps=False), i=O.iter)
  File "/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/utils.py", line 438, in avgNumInteractions
    nums,counts=bodyNumInteractionsHistogram(aabbExtrema(cutoff))
Boost.Python.ArgumentError: Python argument types in
    yade._utils.bodyNumInteractionsHistogram(list)
did not match C++ signature:
    bodyNumInteractionsHistogram(boost::python::tuple aabb)




-- 
You received this question notification because your team yade-users is
an answer contact for Yade.