

def rules_using_parameter(model, parameter):
    'Return a ComponentSet of rules in the model which make use of the given parameter'
    if (not isinstance(parameter, pysb.core.Parameter)):
        parameter = model.parameters.get(parameter)
    cset = ComponentSet()
    for rule in model.rules:
        if ((rule.rate_forward is parameter) or (cset.rate_reverse is parameter)):
            cset.add(rule)
    return cset

dataset/ETHPy150Open pysb/pysb/pysb/util.py rules_using_parameter/VarMisuse@69/109 `rule`->`cset`