allpy
view allpy/util.py @ 935:19ffcf1ac4a0
Fixed bug in processors: used Block class for reading alignment file.
Until recent changes (introduction of Alignment/Block._append_columns) it
worked out fine. But practically, we used alignment API: we created an empty
object and called append_file on it.
For blocks this resulted in a block that did not know it's alignment.
Recent changes in implementation caused blocks to actually have their own
specific methods besides constructor, and these methods use knowlege of
alignment a block belongs to.
Hence, the previous behaviour was a bug.
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Mon, 28 Nov 2011 18:33:25 +0300 |
parents | 7b2a37ff1662 |
children | 08d892230e8c 87ba56d634cf |
line source
1 """Miscellanous utilities.
2 """
7 """The oppozite of zip() builtin."""
15 """Open file. Return stdin/stdout for filename '-'."""
26 """Remove each of substrings from string."""
32 """Clone of dict that user may add attributes to."""
33 pass
36 """Clone of list that user may add attributes to."""
37 pass
40 """Clone of str that user may add attributes to."""
41 pass
44 """Warn about function being deprecated."""
48 """Lazy module import to help breaking bad import loops."""
58 )
73 # vim: set et ts=4 sts=4 sw=4: