yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #09965
[Bug 1224894] Re: Bug in utils.psd() ?
Ok, I get it, thank you Anton. Maybe it's worth changing a bit the
documentation ? (I could do it in some time)
** Changed in: yade
Status: New => Invalid
--
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:
Invalid
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
References