← Back to team overview

yade-users team mailing list archive

Re: [Question #154544]: Get rid of old classes ?

 

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

    Status: Open => Answered

Chareyre proposed the following answer:
Jerome, when you wonder how "ContactLaw1" is still present in Yade, just
type ctrl+alf+f / ContactLaw1 (assuming you use kdevelop), and you'll
find out.

The reason is backward compatibility (scripts using old names will still
work with current version).
It is handled automaticaly if you rename classes or attributes using
scripts like rename-class.py.

You can remove compatibility by removing those lines in py/system.py

'ContactLaw1':'RockJointLaw', # Tue Feb  2 14:53:49 2010,
jduriez@c1solimara-l
'ContactLaw1':'RockJointLaw', # Tue Feb  2 14:54:40 2010,
jduriez@c1solimara-l
'ContactLaw1Interaction':'RockJointPhys', # Tue Feb  2 14:55:34 2010,
jduriez@c1solimara-l
'CL1Relationships':'RockJointLawRelationships', # Tue Feb  2 14:58:02
2010, jduriez@c1solimara-l
... etc

The most funny class renaming was this one in my opinion: ;-)

'ContactLaw1':'SomeBetterName', # Fri Jun  4 15:35:38 2010,
jduriez@c1solimara-l

Bruno

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