

def alias_model_components(model=None):
    "Make all model components visible as symbols in the caller's global namespace"
    if (model is None):
        model = pysb.core.SelfExporter.default_model
    caller_globals = inspect.currentframe().f_back.f_globals
    components = dict(((c.name, c) for c in model.all_components()))
    caller_globals.update(components)

dataset/ETHPy150Open pysb/pysb/pysb/util.py alias_model_components/original