def main(): NAMES = map('_'.join, product(('rev', 'irrev'),('binary', 'unary'))) PARAMS = ('K_eq', 'k_b') BODY = {name_param: open(name_param+'.c','rt').read() for \ name_param in map('_'.join, product(NAMES, PARAMS))} render_mako_template_to('analytic_template.c', 'analytic.c', locals()) render_mako_template_to('_analytic_template.pyx', '_analytic.pyx', locals())
def main(): NAMES = ['_'.join(args) for args in product(rev_irrev, unary_binary)] OUTPUTS = {} for _name in NAMES: _tmp = get_outputs(_name) OUTPUTS[_name] = _tmp RBKs = list(product(rev_irrev, unary_binary, kb_Keq)) render_mako_template_to('Makefile_template.mako', 'Makefile', locals())
def main(): NAMES = ['_'.join(args) for args in product(rev_irrev, unary_binary)] OUTPUTS={} for _name in NAMES: _tmp = get_outputs(_name) OUTPUTS[_name] = _tmp RBKs = list(product(rev_irrev, unary_binary, kb_Keq)) render_mako_template_to('Makefile_template.mako', 'Makefile', locals())