Question #691907 on Yade changed:
https://answers.launchpad.net/yade/+question/691907
Status: Answered => Open
Leonard is still having a problem:
Hi Jan,
Thanks for your reply. Using Python set is a great idea.
I still have one doubt, since there is no oder (or random order) for id1
and id2 in one O.interaction[1], so using iniIntrs = set((i.id1,i.id2)
for i in O.interactions could get (id1,id2) or (id2,id1), does curIntrs
= set((i.id1,i.id2) for i in O.interactions get the same one?
For example, my doubt is:
If I get iniIntrs = ((1,2),(3,4)), and get curIntrs=((1,2),(5,6)), then
brokenIntrs = iniIntrs - curIntrs=(3,4), which is perfect!
Is there any possible that I get iniIntrs = ((1,2),(3,4)), and get
curIntrs=((2,1),(5,6)), then brokenIntrs = iniIntrs - curIntrs=((1,2),(3,4)),
which is not good since O.interaction[1,2] is not broken.
Thanks
Leonard
[1]https://answers.launchpad.net/yade/+question/402893
--
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