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


Python RunApp.validParams方法代码示例

本文整理汇总了Python中RunApp.RunApp.validParams方法的典型用法代码示例。如果您正苦于以下问题:Python RunApp.validParams方法的具体用法?Python RunApp.validParams怎么用?Python RunApp.validParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RunApp.RunApp的用法示例。


在下文中一共展示了RunApp.validParams方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
 def validParams():
   params = RunApp.validParams()
   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:AhmedAly83,项目名称:moose,代码行数:9,代码来源:CheckFiles.py

示例2: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    params.addRequiredParam('txtdiff',   [], "A list of files to txtdiff.")
    params.addParam('gold_dir',      'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)")
    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:brianmoose,项目名称:redback,代码行数:9,代码来源:Txtdiff.py

示例3: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
 def validParams():
     params = RunApp.validParams()
     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.")
     params.addParam('state', 'user', "The state for which we want to compare against the "
                                      "finite-differenced Jacobian ('user', 'const_positive', or "
                                      "'const_negative'.")
     return params
开发者ID:zachmprince,项目名称:moose,代码行数:10,代码来源:PetscJacobianTester.py

示例4: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()

    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:IoannisSt,项目名称:moose,代码行数:10,代码来源:RunException.py

示例5: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
    def validParams():
        params = RunApp.validParams()
        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('ignored_attributes',  [], "Ignore e.g. type and/or version in sample XML block <VTKFile type=\"Foo\" version=\"0.1\">")

        return params
开发者ID:aeslaughter,项目名称:moose,代码行数:11,代码来源:VTKDiff.py

示例6: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    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:AhmedAly83,项目名称:moose,代码行数:11,代码来源:VTKDiff.py

示例7: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    params.addRequiredParam('nPosts', "The Number of Expected Posts")
    params.addRequiredParam('port', "The port to listen to")
    # Recover testing requires the Tester object to be copied, but
    # this type of object *can't* be copied because it contains a
    # thread.lock object.
    params['recover'] = False

    return params
开发者ID:cbolisetti,项目名称:moose,代码行数:12,代码来源:ICEUpdaterTester.py

示例8: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
 def validParams():
     params = RunApp.validParams()
     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.")
     params.addParam('state', 'user', "The state for which we want to compare against the "
                                      "finite-differenced Jacobian ('user', 'const_positive', or "
                                      "'const_negative'.")
     params.addParam('run_sim', False, "Whether to actually run the simulation, testing the Jacobian "
                                       "at every non-linear iteration of every time step. This is only "
                                       "relevant for petsc versions >= 3.9.")
     return params
开发者ID:FHilty,项目名称:moose,代码行数:13,代码来源:PetscJacobianTester.py

示例9: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
    def validParams():
        params = RunApp.validParams()

        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")

        # RunException tests executed in parallel need to have their output redirected to a file, and examined individually
        params['redirect_output'] = True

        return params
开发者ID:huangh-inl,项目名称:moose,代码行数:13,代码来源:RunException.py

示例10: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()

    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")

    # Printing errors in parallel often intertwine when multiple processors receive the same error.  We will set max_parallel = 1 by default, but it can be overridden
    params['max_parallel'] = 1

    return params
开发者ID:AhmedAly83,项目名称:moose,代码行数:13,代码来源:RunException.py

示例11: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    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:andrsd,项目名称:moose,代码行数:14,代码来源:Exodiff.py

示例12: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
    def validParams():
        params = RunApp.validParams()

        # Input is optional in the base class. Make it required here
        params.addRequiredParam('input', "The python input file to use for this test.")
        params.addParam('buffer', False, "Equivalent to passing -b or --buffer to the unittest.")
        params.addParam('separate', False, "Run each test in the file in a separate subprocess")
        # We don't want to check for any errors on the screen with unit tests
        params['errors'] = []
        params['valgrind'] = 'NONE'
        params['recover'] = False
        return params
开发者ID:FHilty,项目名称:moose,代码行数:14,代码来源:PythonUnitTest.py

示例13: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    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!")
    params.addParam('delete_output_folders', True, "Delete output folders before running")
    params.addParam('map',  True, "Use geometrical mapping to match up elements.  This is usually a good idea because it makes files comparable between runs with Serial and Parallel Mesh.")

    return params
开发者ID:JasonTurner56,项目名称:ARL,代码行数:16,代码来源:Exodiff.py

示例14: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    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:DarinReid,项目名称:moose,代码行数:8,代码来源:PetscJacobianTester.py

示例15: validParams

# 需要导入模块: from RunApp import RunApp [as 别名]
# 或者: from RunApp.RunApp import validParams [as 别名]
  def validParams():
    params = RunApp.validParams()
    params = ExodiffAndRunException.validParams_Exodiff(params)
    params = ExodiffAndRunException.validParams_RunException(params)

    return params
开发者ID:apc-llc,项目名称:ewe,代码行数:8,代码来源:ExodiffAndRunException.py


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