def parameter_signatures(par, model, tspan): """ :param par: parameter file path or vector of parameters :param model: PySB model :param tspan: time span :return: tropical signatures of input parameters """ try: if os.path.isfile(par): parames = hf.read_pars(par) else: parames = par drivers = run_tropical(model, tspan, parameters=parames, sp_visualize=None) return drivers except: print(par) print("".join(traceback.format_exception(*sys.exc_info()))) raise Exception("".join(traceback.format_exception(*sys.exc_info())))
from mm_simple_model import model from tropicalize import run_tropical import numpy as np tspan = np.linspace(0, 5, 51) run_tropical(model, tspan, sp_visualize=[3, 5])