pyneuroml.sbml module#

use libsbml.SBMLDocument.checkConsistency to check validaity of an SBML document based on combine-org/combine-notebooks

pyneuroml.sbml.validate_sbml_files(input_files: List[str], strict_units: bool = False) bool#

Validate input files using libsbml.SBMLDocument.checkConsistency

Added in version 1.1.5.

Parameters:
  • input_files (list(str)) – a list of one or more filepaths

  • strict_units (bool) – toggle whether unit consistency warnings should be treated as errors

Returns:

True if all files are valid, else False

Return type:

bool