本文整理匯總了Python中Biskit.Executor.fail方法的典型用法代碼示例。如果您正苦於以下問題:Python Executor.fail方法的具體用法?Python Executor.fail怎麽用?Python Executor.fail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Biskit.Executor
的用法示例。
在下文中一共展示了Executor.fail方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: fail
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import fail [as 別名]
def fail( self ):
"""
Called if external program failed, Overrides Executor method.
In some very rare cases SurfaceRacer round off error cause the program
to terminate. The simplest remedy to this problem is to increase the
probe radii with a very small number and rerun the calculation.
"""
self.i_failed += 1
if self.i_failed < 2:
self.probe = self.probe + 0.001
self.run()
Executor.fail( self )