def validateSpec(self):
     discGen.validateSpec(self)
     try:
         assert isoutputdiscrete(self.indepvariable)
         for v in self.variables.values():
             assert isinstance(v, Variable)
         assert not self.inputs
     except AssertionError:
         print 'Invalid system specification'
         raise
 def validateSpec(self):
     discGen.validateSpec(self)
     try:
         assert isoutputdiscrete(self.indepvariable)
         for v in self.variables.values():
             assert isinstance(v, Variable)
         assert not self.inputs
     except AssertionError:
         print 'Invalid system specification'
         raise
Beispiel #3
0
 def validateSpec(self):
     discGen.validateSpec(self)
Beispiel #4
0
 def validateSpec(self):
     discGen.validateSpec(self)