当前位置: 首页>>代码示例>>Python>>正文


Python RunApp.getValidParams方法代码示例

本文整理汇总了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
开发者ID:Jieun2,项目名称:moose,代码行数:9,代码来源:CheckFiles.py

示例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
开发者ID:Jieun2,项目名称:moose,代码行数:10,代码来源:RunException.py

示例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
开发者ID:Jieun2,项目名称:moose,代码行数:11,代码来源:VTKDiff.py

示例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
开发者ID:Jieun2,项目名称:moose,代码行数:14,代码来源:Exodiff.py

示例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
开发者ID:Jieun2,项目名称:moose,代码行数:8,代码来源:PetscJacobianTester.py


注:本文中的RunApp.RunApp.getValidParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。