本文整理匯總了Python中Problem.Problem.verifyConfiguration方法的典型用法代碼示例。如果您正苦於以下問題:Python Problem.verifyConfiguration方法的具體用法?Python Problem.verifyConfiguration怎麽用?Python Problem.verifyConfiguration使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Problem.Problem
的用法示例。
在下文中一共展示了Problem.verifyConfiguration方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: verifyConfiguration
# 需要導入模塊: from Problem import Problem [as 別名]
# 或者: from Problem.Problem import verifyConfiguration [as 別名]
def verifyConfiguration(self):
"""
Verify compatibility of configuration.
"""
Problem.verifyConfiguration(self)
self.formulation.verifyConfiguration()
return
示例2: verifyConfiguration
# 需要導入模塊: from Problem import Problem [as 別名]
# 或者: from Problem.Problem import verifyConfiguration [as 別名]
def verifyConfiguration(self):
"""
Verify compatibility of configuration.
"""
Problem.verifyConfiguration(self)
self.formulation.verifyConfiguration()
if not "numImpulses" in dir(self.source) or not "numComponents" in dir(self.source):
raise ValueError("Incompatible source for green's function impulses "
"with id '%d' and label '%s'." % \
(self.source.id(), self.source.label()))
return