コード例 #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"
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 def validateSpec(self):
     ctsGen.validateSpec(self)