ode2sbml.validators.sbml_validator
sbml_validator
SBML validator: wraps libsbml consistency checks.
SBMLValidationError
validate_sbml_doc(doc, raise_on_error=True)
Run libsbml consistency checks on doc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
doc
|
SBMLDocument
|
The SBMLDocument to validate. |
required |
raise_on_error
|
bool
|
If True (default), raise :class: |
True
|
Returns:
| Type | Description |
|---|---|
list of str
|
All diagnostic messages (warnings + errors). |
Source code in ode2sbml/validators/sbml_validator.py
validate_sbml_file(filepath, raise_on_error=True)
Validate an SBML file on disk.
Source code in ode2sbml/validators/sbml_validator.py
validate_sbml_string(xml_string, raise_on_error=True)
Validate an SBML XML string.