yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07953
[Branch ~yade-dev/yade/trunk] Rev 2934: Fix in spheresPackDimensions. The bug appeared, when only mask was inputted
------------------------------------------------------------
revno: 2934
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-10-17 09:42:58 +0200
message:
Fix in spheresPackDimensions. The bug appeared, when only mask was inputted
modified:
py/bodiesHandling.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'py/bodiesHandling.py'
--- py/bodiesHandling.py 2011-10-17 07:02:48 +0000
+++ py/bodiesHandling.py 2011-10-17 07:42:58 +0000
@@ -26,7 +26,7 @@
if (mask>-1):
for i in O.bodies:
if ((i.mask&mask)<>0):
- ifSpherMask+=i.id
+ ifSpherMask.append(i.id)
if (len(ifSpherMask)<2):
raise RuntimeWarning("Not enough bodies to analyze with given mask")
else:
@@ -36,7 +36,6 @@
else:
idSpheresIter=idSpheres
-
min = Vector3.Zero
max = Vector3.Zero
@@ -46,7 +45,7 @@
counter = 0
- for i in idSpheres:
+ for i in idSpheresIter:
if (type(i).__name__=='int'):
b = O.bodies[i] #We have received a list of ID's
elif (type(i).__name__=='Body'):