yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28537
Re: [Question #703571]: How to reset the stiffness of the particles at a later stage?
Question #703571 on Yade changed:
https://answers.launchpad.net/yade/+question/703571
Jan Stránský requested more information:
> Now I have readjusted the code as follows:
IndentationError: unindent does not match any outer indentation level
> Why does' that O. bodies [arg] expect "arg" to be int, but actually it
is Body. 'still occur.
Usage of O.bodies[...] seems perfectly OK in the provided code.
Isn't the error different? like "AttributeError: 'int' object has no attribute 'intrs'"?
> you can't find an error by clicking Run
please always try to provide a MWE, W = working, reproducing your
problem..
> def li():
> for body in shuzu:
> print(type(body))
> #body.mat = mat2
> O.bodies[body].material = mat2
> for intr in body.intrs():
> O.interactions.erase(intr.id1,intr.id2)
compare your current code (levels of the for loops) with #4
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.