Darn it, that's a documentation bug. I filed a bug report to remind us:
https://sourceforge.net/p/sbml/libsbml/464/
Thanks for bringing it up!
MH
On 10 Jul 2018, at 1:31, s.mo...@campus.unimib.it wrote:
> Hi,
> I hope this is the right place to ask: I'm struggling trying to add
> the reaction groups to the SBML model I built with COBRApy, working
> with python 3 in Jupyter notebook. I looked up for an example on the
> website and I found it under:
> http://sbml.org/Software/libSBML/5.13.0/docs//python-api/libsbml-python-example-files.html#package-groups-examples.
> However, in this page the file "groups_example1.py" is not linked to
> anything. Is there a way to have it back? This file, or actually any
> other: I'm looking of what I think should be a really simple function,
> but unfortunately I'm not able to figure it out.
>
> --
> 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.
Hello Isabella,
To enable a package for a document, we have a separate function. You would enable it with a call to the documents:
enablePackage(string pkgURI, string pkgPrefix)
method [1]. The return value would have told you that the package that was not enabled yet. Additionally you could use the function OperationReturnValue_toString to get a more readable result of the error code.
Finally, I would recommend that you use the GroupsExtension functions to return the correct uri for your level / version [2]
Cheers
Frank
> 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/b93120e2-e5a6-44d7-9a91-ff8ddf98997b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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/b7492457-a5af-4beb-bc83-c8d97b660dd6%40googlegroups.com.
> an email to sbml-interoperability+unsub...@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/b93120e2-e5a6-44d7-9a91-ff8ddf98997b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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.