Question #688060 on Yade changed:
https://answers.launchpad.net/yade/+question/688060
Status: Open => Answered
Jan Stránský proposed the following answer:
something like:
###
with open(fileName,"w") as f:
f.write("# cpx cpy cpz fnx fny fnz ...\n")
for d in data: # or directly for i in O.interactions
cp = d["cp"]
fn = d["fn"]
...
f.write("{} {} {} {} {} {} ...
"\n".format(cp[0],cp[1],cp[2],fn[0],fn[1],fn[2],...)
###
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp