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
def test_init_default(): kappa = kappa_client.KappaRuntime()
def _get_kappa(): return kappa_client.KappaRuntime('test_project', debug=True)