Prints information about the top-level model in the given SBML file.
49 """Usage: printNotes filename 54 print(
"\n" +
"Usage: printSBML filename" )
60 if document.getNumErrors() > 0:
61 printLine(
"Encountered the following SBML errors:" )
62 document.printErrors()
65 level = document.getLevel()
66 version = document.getVersion()
70 +
" (Level " + str(level) +
", version " + str(version) +
")" )
72 model = document.getModel()
75 print(
"No model present." )
88 if model.isSetSBOTerm():
89 print(
" model sboTerm: " + model.getSBOTerm() )
91 print(
"functionDefinitions: " + str(model.getNumFunctionDefinitions()) )
92 print(
" unitDefinitions: " + str(model.getNumUnitDefinitions()) )
93 print(
" compartmentTypes: " + str(model.getNumCompartmentTypes()) )
94 print(
" specieTypes: " + str(model.getNumSpeciesTypes()) )
95 print(
" compartments: " + str(model.getNumCompartments()) )
96 print(
" species: " + str(model.getNumSpecies()) )
97 print(
" parameters: " + str(model.getNumParameters()) )
98 print(
" initialAssignments: " + str(model.getNumInitialAssignments()) )
99 print(
" rules: " + str(model.getNumRules()) )
100 print(
" constraints: " + str(model.getNumConstraints()) )
101 print(
" reactions: " + str(model.getNumReactions()) )
102 print(
" events: " + str(model.getNumEvents()) )
108 if __name__ ==
'__main__':