I'm trying to use the matrix variable to collect a matrix in the file 
MatrixInfo which contains a lot of different matrices. Yhe commented line is 
the problem.
HOW ???????

import re
import MatrixInfo

class Diff:
    def __init__(self,filobj,matrix='pam250',begin=0,end='none'):
        self.fil = filobj
        self.begin = begin
        self.end = end
        if matrix in MatrixInfo.available_matrices:
######self.matrix =MatrixInfo.matrix
            self.matrix= MatrixInfo.pam250
        else print "matrix don't exist %s" %matrix
        self.seqnr=0
        self.basenr=0
        self.dict = {}

Thanks Lars 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to