Use getRule (n) on the model instance, eg
ar = model.getRule (n)
print (ar.getId())
I think that should do it. I've not checked but I imagine there will be something to check if the selected rule is an assignment rule.
--
You received this message because you are subscribed to the Google Groups "sbml-interoperability" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbml-interoperab...@googlegroups.com.
To post to this group, send email to sbml-inter...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbml-interoperability/CAHLmBr27o6pJLs%2BUrKi19XdauuTkhVLzb5UJsMmjfPwmX4nwTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
That's the bit I didn't know.Herbert
On Fri, Jan 18, 2019 at 4:16 PM Lucian Smith <luciano...@gmail.com> wrote:
--On Fri, Jan 18, 2019 at 4:09 PM Herbert Sauro <hsa...@gmail.com> wrote:Use getRule (n) on the model instance, eg
ar = model.getRule (n)
print (ar.getId())
I think that should do it. I've not checked but I imagine there will be something to check if the selected rule is an assignment rule.If you know all your rules are assignment rules, that'll work; if there is or might be a mix, you can check first:ar = model.getRule(n)if (ar.getTypeCode() == libsbml.SBML_ASSIGNMENT_RULE):print(ar.getVariable())-Lucian
You received this message because you are subscribed to the Google Groups "sbml-interoperability" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbml-interoperability+unsub...@googlegroups.com.