Public bug reported: Hi,
I was trying utils.psd() function, and it seems to me there might be a bug concerning the third returned variable, this binsSumCum (https://www .yade-dem.org/doc/yade.utils.html#yade.utils.psd). I believed, from what I understood from code and doc, that the last number of binsSumCum should correspond to the number of spheres in the sample, but I get non-integer values, having nothing in common with O.bodies.__len__() ?? Few lines as example : pred = yade.pack.inAlignedBox((0,0,0),(10,10,10)) sp = pack.randomDensePack(pred,radius=0.5,rRelFuzz=0.3,memoizeDb='/tmp/gts-triax-packings.sqlite',returnSpherePack=True) sp.toSimulation() O.bodies.__len__() # ~ 1520 yade.utils.psd(bins=1) # -> ~ 868000 ** Affects: yade Importance: Undecided Status: New -- You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. https://bugs.launchpad.net/bugs/1224894 Title: Bug in utils.psd() ? Status in Yet Another Dynamic Engine: New Bug description: Hi, I was trying utils.psd() function, and it seems to me there might be a bug concerning the third returned variable, this binsSumCum (https://www.yade-dem.org/doc/yade.utils.html#yade.utils.psd). I believed, from what I understood from code and doc, that the last number of binsSumCum should correspond to the number of spheres in the sample, but I get non-integer values, having nothing in common with O.bodies.__len__() ?? Few lines as example : pred = yade.pack.inAlignedBox((0,0,0),(10,10,10)) sp = pack.randomDensePack(pred,radius=0.5,rRelFuzz=0.3,memoizeDb='/tmp/gts-triax-packings.sqlite',returnSpherePack=True) sp.toSimulation() O.bodies.__len__() # ~ 1520 yade.utils.psd(bins=1) # -> ~ 868000 To manage notifications about this bug go to: https://bugs.launchpad.net/yade/+bug/1224894/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

