O.bodies.shape ?!
Hello,
I am facing some troubles with a function:
def get_z_o_and_z_u():
rad_sum = 0.0
he_real = 0.0
for ii in sphID:
rad_sum = rad_sum + O.bodies[
bh = O.bodies[
if bh > he_real:
he_real = bh
he_eff = he_real + O.bodies[
r_d = rad_sum/sum_spheres
# determine clump dimensions:
z_o = he_eff
z_u = z_o-6*r_d
where sphID is the list of all sphere IDs.
Error message:
File "/home/
File "4-simulate-
File "userinput.py", line 134, in get_z_o_and_z_u
rad_sum = rad_sum + O.bodies[
AttributeError: 'NoneType' object has no attribute 'shape'
I am wondering, because this function works (no Error message):
def updSph(rad=1.0):
i = 0
for ii in sphID:
tempID = O.bodies.
sphID[i] = tempID
O.bodies.
i+=1
Does anyone know why this happens?
Thanks,
Christian
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anton Gladky
- Solved:
- Last query:
- Last reply: