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):
        # Try getting the parameter by name
        parameter = model.parameters.get(parameter)
    cset = ComponentSet()
    for rule in model.rules:
        if rule.rate_forward != parameter or rule.rate_reverse is parameter:
            cset.add(rule)
    return cset
dataset/ETHPy150Open pysb/pysb/pysb/util.py/rules_using_parameter/operator `is` -> `!=`