Exemple #1
0
 def validateSpec(self):
     ctsGen.validateSpec(self)
     if remain(self.initialconditions.keys(),
                   self.variables.keys()) != []:
         print "IC names defined:", self.initialconditions.keys()
         print "Varnames defined:", self.variables.keys()
         raise ValueError, \
                   "Mismatch between initial condition and variable names"
 def validateSpec(self):
     ctsGen.validateSpec(self)
     try:
         for v in self.variables.values():
             assert isinstance(v, Variable)
         assert not self.inputs
     except AssertionError:
         print 'Invalid system specification'
         raise
 def validateSpec(self):
     ctsGen.validateSpec(self)
     try:
         for v in self.variables.values():
             assert isinstance(v, Variable)
         assert not self.inputs
     except AssertionError:
         print 'Invalid system specification'
         raise
 def validateSpec(self):
     ctsGen.validateSpec(self)