package = 'comp'
sbmlns = self.doc.getSBMLNamespaces()
sbmlns.addPackageNamespace(package, 1)
self.doc.setPackageRequired(package, True)
props = libsbml.ConversionProperties()
props(sbmlns)
self.doc.convert(props)
-33: "Conversion with the given properties is not yet available."self.doc.getSBMLNamespaces().addPackageNamespace('comp', 1)
self.doc.model.getSBMLNamespaces().addPackageNamespace('comp', 1)-4: "A value passed as an argument to the method is not of a type that is valid for the operation or kind of object involved. For example, this return code is used when a calling program attempts to set an SBML object identifier to a string whose syntax does not conform to the SBML identifier syntax."self.doc.model.getPlugin('comp')
comp = self.doc.getPlugin('comp')
comp_model = self.doc.model.getPlugin('comp')comp_model.addSubmodel(new.doc.model)sub_model = comp_model.createSubmodel()
sub_model.setId('new')
sub_model.setModelRef(new.doc.model.id)>> The value of a 'comp:modelRef' attribute on a <submodel> must be the identifier of a <model>, <modelDefinition>, or <externalModelDefinition> object in the same SBML object as the <submodel>comp.addModelDefinition(new.doc.model)
comp_model.addSubmodel(new.doc.model)
comp_model.addSubmodel(sub_model)> To unsubscribe from this group and stop receiving emails from it, send an email to libsbml-development+unsub...@googlegroups.com.