allpy
changeset 322:696d314ad718
Added to base.Monomer missing properties: code1, code3, name, is_modified
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Fri, 17 Dec 2010 00:35:31 +0300 |
parents | 05983300140a |
children | 2a6c2cffa891 |
files | allpy/base.py |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/allpy/base.py Fri Dec 17 00:32:13 2010 +0300 1.2 +++ b/allpy/base.py Fri Dec 17 00:35:31 2010 +0300 1.3 @@ -121,6 +121,22 @@ 1.4 def from_name(cls, name): 1.5 return cls(cls.monomer_type.by_name[name.capitalize()]) 1.6 1.7 + @property 1.8 + def code1(self): 1.9 + return self.type.code1 1.10 + 1.11 + @property 1.12 + def code3(self): 1.13 + return self.type.code3 1.14 + 1.15 + @property 1.16 + def name(self): 1.17 + return self.type.name 1.18 + 1.19 + @property 1.20 + def is_modified(self): 1.21 + return self.type.is_modified 1.22 + 1.23 def __eq__(self, other): 1.24 if hasattr(other, "type"): 1.25 return self.type is other.type