Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/19ffcf1ac4a0
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 00:55:41 2012
Кодировка:
allpy: 19ffcf1ac4a0

allpy

changeset 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 763eb1b43534
children 32f4a9db60c6
files allpy/processors.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/allpy/processors.py	Mon Nov 28 17:27:45 2011 +0300
     1.2 +++ b/allpy/processors.py	Mon Nov 28 18:33:25 2011 +0300
     1.3 @@ -27,7 +27,7 @@
     1.4                  infile.close()
     1.5                  subst_vars = {'infile': infile.name, 'outfile': outfile.name}
     1.6                  os.system(self.command % subst_vars)
     1.7 -                Alignment = block.__class__
     1.8 +                Alignment = block.types.Alignment
     1.9                  new_alignment = Alignment().append_file(outfile)
    1.10                  os.unlink(infile.name)
    1.11                  os.unlink(outfile.name)