← Back to team overview

yade-users team mailing list archive

Re: [Question #580220]: ymport.textClumps "TypeError"

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Weimin,
have a look at doc [1], the loaded particles are already O.bodies.appended

########### some test
...
print len(O.bodies)
clumps = ymport.textClumps("spheres.dat")
print len(O.bodies)
# print clumps # is not "list of spheres" as the docs says, but rather list of (clumpID,[member1ID,member2ID...]), as returned by O.bodies.appendClumped
###########

cheers
Jan

[1] When I use export.textClumps to import the clumps

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