Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/file/afed1fd8920c/.hgeol
Дата изменения: Unknown
Дата индексирования: Sun Feb 3 05:58:21 2013
Кодировка:
allpy: afed1fd8920c .hgeol

allpy

view .hgeol @ 1091:afed1fd8920c

Added backreferences to `Seqeunce`s from `Monomer`s (closes #49) WARNING! Please note that `Sequence` API almost changed entirely! WARNING! This commit immediately obsoletes classmethods `Monomer.from_code*`, `Monomer.from_name` and `Sequence.from_monomers`. Turns out, python can not pickle sets/dicts which have keys, which inderecly reference the set/dict itself: http://bugs.python.org/issue9269 -- which is excatly what we have in abundance after this change. To allow pickling added `__getstate__` to `Monomer` to return all attributes, except `sequence` and `__setstate__` to `Sequence`, which runs through all monomers and returns the `sequence` attribute back to where it belongs. WARNING! This MAY result in unexpected behaviour in some cases. (Which should be rare enough).
author Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru>
date Sat, 02 Jun 2012 19:33:42 +0400
parents 61e5d8e146c7
children
line source
1 [patterns]
2 **.py = native
3 **.txt = native
4 **.html = native
5 **.css = native
6 **.js = native
7 **.fasta = native
8 **.rst = native
9 **.tcl = native
10 **.C = native
11 **.h = native
12 utils/** = native
13 debian/** = native
14 Makefile = native
15 **/Makefile = native
16 README* = native
17 **/README* = native
18 TODO = native
19 **/TODO = native
20 NEWS = native
21 **/NEWS = native
22 .hgignore = native
24 **.png = BIN
26 # XXX: all executable scripts without extensions must end up in utils/
27 # this exception must go away
28 geometrical_core/geometrical-core = native
30 # XXX: these are all parts of Boris' build system for
31 # blocks3d-wt and must go away in favour of a Makefile
32 **.sh = native
33 **.xml = native
34 **.pro = native
35 **.ini = native