← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2936: Fix a default parameter for ids in spheresPackDimensions

 

------------------------------------------------------------
revno: 2936
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-10-17 10:45:13 +0200
message:
  Fix a default parameter for ids in spheresPackDimensions
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 08:18:44 +0000
+++ py/bodiesHandling.py	2011-10-17 08:45:13 +0000
@@ -9,7 +9,7 @@
 import utils,math,numpy
 
 #spheresPackDimensions==================================================
-def spheresPackDimensions(idSpheres=[0],mask=-1):
+def spheresPackDimensions(idSpheres=[],mask=-1):
 	"""The function accepts the list of spheres id's or list of bodies and calculates max and min dimensions, geometrical center.
 
 	:param list idSpheres: list of spheres
@@ -36,6 +36,7 @@
 	else:
 		idSpheresIter=idSpheres
 	
+	
 	min = Vector3.Zero
 	max = Vector3.Zero