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


Python ConfigurationDefinition.import_section_from_composite_class方法代码示例

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


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

示例1: run

# 需要导入模块: from pts.core.basics.configuration import ConfigurationDefinition [as 别名]
# 或者: from pts.core.basics.configuration.ConfigurationDefinition import import_section_from_composite_class [as 别名]
# Various flags
definition.add_flag("relative", "treats the given input and output paths as being relative to the ski/fski file")
definition.add_flag("emulate", "emulate the simulation while limiting computation")

# Other
definition.add_flag("keep", "keep remote input and output")
definition.add_flag("keep_input", "keep remote input specifically")
definition.add_optional("retrieve_types", "string_list", "types of output files that have to be retrieved/retained (None means everything)", choices=output_type_choices)

# Special things
definition.add_flag("dry", "dry run (don't actually launch the simulations)", False)
definition.add_flag("attached", "launch the simulations in attached mode (only works if remotes without scheduling system are used)")

# Logging options
definition.import_section_from_composite_class("logging", "logging options", LoggingOptions)

# Analysis options
definition.import_section_from_composite_class("analysis", "simulation analysis options", AnalysisOptions)

# Show stuff
definition.add_flag("show", "show", True)

# Show the output of finished simulations
definition.add_flag("show_finished", "show the output of finished simulations", False)

# -----------------------------------------------------------------

# Retrieve and analyse finished simulations?
definition.add_flag("retrieve", "retrieve finished simulations", True)
definition.add_flag("analyse", "analyse retrieved simulations", True)
开发者ID:SKIRT,项目名称:PTS,代码行数:32,代码来源:launch.py


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