Exemplo n.º 1
0
 def __init__(self, use_kappa=True, use_kappa_rest=False):
     kappa_mode_label = 'rest' if use_kappa_rest else 'standard'
     if not use_kappa:
         self.ode_mode = True
         logger.info('Using ODE mode in TRA.')
     else:
         self.ode_mode = False
         try:
             self.kappa = kappa_client.KappaRuntime('TRA_simulations',
                                                    use_rest=use_kappa_rest)
             logger.info('Using kappa %s.' % kappa_mode_label)
         except Exception as e:
             logger.error('Could not use kappa %s.' % kappa_mode_label)
             logger.exception(e)
             self.ode_mode = True
     return
Exemplo n.º 2
0
def test_init_default():
    kappa = kappa_client.KappaRuntime()
Exemplo n.º 3
0
def _get_kappa():
    return kappa_client.KappaRuntime('test_project', debug=True)