Пример #1
0
    def __init__(self, info, axon=None):
        EventBus.__init__(self)
        self._i_res = {}
        self._i_info = info
        self._i_axon = axon

        self._i_glab = s_gene.GeneLab()

        self._tvar_cache = {}
        self._tvar_regex = re.compile('{{(\w+)}}')
Пример #2
0
 def test_gene_lab(self):
     glab = s_gene.GeneLab()
     expr0 = glab.getGeneExpr('foo == 10')
     expr1 = glab.getGeneExpr('foo == 10')
     self.eq(id(expr0), id(expr1))
     self.eq(expr0({'foo': 10}), 1)