Unsets the notes for each element in the given SBML file.
48 """Usage: unsetNotes <input-filename> <output-filename> 51 print(
"\n" +
"Usage: unsetNotes <input-filename> <output-filename>" +
"\n" +
"\n")
58 errors = document.getNumErrors()
61 document.printErrors()
64 m = document.getModel()
67 for i
in range(0, m.getNumReactions()):
71 for j
in range(0, re.getNumReactants()):
72 rt = re.getReactant(j)
75 for j
in range(0, re.getNumProducts()):
79 for j
in range(0, re.getNumModifiers()):
80 md = re.getModifier(j)
83 if re.isSetKineticLaw():
84 kl = re.getKineticLaw()
87 for j
in range(0, kl.getNumParameters()):
88 pa = kl.getParameter(j)
91 for i
in range(0, m.getNumSpecies()):
95 for i
in range(0, m.getNumCompartments()):
96 sp = m.getCompartment(i)
99 for i
in range(0, m.getNumFunctionDefinitions()):
100 sp = m.getFunctionDefinition(i)
103 for i
in range(0, m.getNumUnitDefinitions()):
104 sp = m.getUnitDefinition(i)
107 for i
in range(0, m.getNumParameters()):
108 sp = m.getParameter(i)
111 for i
in range(0, m.getNumRules()):
115 for i
in range(0, m.getNumInitialAssignments()):
116 sp = m.getInitialAssignment(i)
119 for i
in range(0, m.getNumEvents()):
123 for j
in range(0, sp.getNumEventAssignments()):
124 ea = sp.getEventAssignment(j)
127 for i
in range(0, m.getNumSpeciesTypes()):
128 sp = m.getSpeciesType(i)
131 for i
in range(0, m.getNumConstraints()):
132 sp = m.getConstraint(i)
140 if __name__ ==
'__main__':