← Back to team overview

yade-users team mailing list archive

Re: [Question #259419]: How to record the breakage of the cohesion?

 

Question #259419 on Yade changed:
https://answers.launchpad.net/yade/+question/259419

    Status: Answered => Open

whr is still having a problem:
Hi Jan,

Thanks for your answer. I followed your suggestion and try that code.
Then I got following error information:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "test_load.py", line 25, in saveAddData
    if i.phys.cohesionBroken:
AttributeError: 'NoneType' object has no attribute 'cohesionBroken'

I added following code and got results that seems right.

  except AttributeError:
      ret +=1

Am I right? Where did this AttributeError come from? It seems the
interaction remains but no physical information.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.


Follow ups

References