本文整理汇总了Python中RunApp.RunApp.getValidParams方法的典型用法代码示例。如果您正苦于以下问题:Python RunApp.getValidParams方法的具体用法?Python RunApp.getValidParams怎么用?Python RunApp.getValidParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RunApp.RunApp
的用法示例。
在下文中一共展示了RunApp.getValidParams方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getValidParams
# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import getValidParams [as 别名]
def getValidParams():
params = RunApp.getValidParams()
params.addParam('check_files', [], "A list of files that MUST exist.")
params.addParam('check_not_exists', [], "A list of files that must NOT exist.")
params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!")
params.addParam('file_expect_out', "A regular expression that must occur in all of the check files in order for the test to be considered passing.")
return params
示例2: getValidParams
# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import getValidParams [as 别名]
def getValidParams():
params = RunApp.getValidParams()
params.addParam('expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)")
params.addParam('expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)")
params.addParam('should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early")
return params
示例3: getValidParams
# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import getValidParams [as 别名]
def getValidParams():
params = RunApp.getValidParams()
params.addRequiredParam('vtkdiff', [], "A list of files to exodiff.")
params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)")
params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.")
params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.")
params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!")
return params
示例4: getValidParams
# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import getValidParams [as 别名]
def getValidParams():
params = RunApp.getValidParams()
params.addRequiredParam('exodiff', [], "A list of files to exodiff.")
params.addParam('exodiff_opts', [], "Additional arguments to be passed to invocations of exodiff.")
params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)")
params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.")
params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.")
params.addParam('custom_cmp', "Custom comparison file")
params.addParam('use_old_floor', False, "Use Exodiff old floor option")
params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!")
return params
示例5: getValidParams
# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import getValidParams [as 别名]
def getValidParams():
params = RunApp.getValidParams()
params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.")
params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.")
return params