← Back to team overview

yade-users team mailing list archive

Re: [Question #672684]: Not getting desired PSD generation

 

Question #672684 on Yade changed:
https://answers.launchpad.net/yade/+question/672684

    Status: Answered => Open

j0hnn1e is still having a problem:
Hello Bruno,
Sorry for inconvenience. Please find attached the working script.
https://pastebin.com/nGwiWxAj

Query code in terminal:
yell=[]
for b in O.bodies:
  if isinstance(b.shape,Sphere):
    yell.append(b.shape.radius)
count=0
for j in range(len(yell)):
  if yell[j]<2.36:
    count=count+1
print (float(count)/len(yell))
*******************
Thanks

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