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


Python Executable.new_output_file_opt方法代码示例

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


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

示例1: cut_distant_injections

# 需要导入模块: from pycbc.workflow.core import Executable [as 别名]
# 或者: from pycbc.workflow.core.Executable import new_output_file_opt [as 别名]
def cut_distant_injections(workflow, inj_file, out_dir, tags=None):
    "Set up a job for removing injections that are too distant to be seen"
    if tags is None:
        tags = []

    node = Executable(workflow.cp, 'inj_cut', ifos=workflow.ifos,
                      out_dir=out_dir, tags=tags).create_node()
    node.add_input_opt('--input', inj_file)
    node.new_output_file_opt(workflow.analysis_time, '.xml', '--output-file')
    workflow += node
    return node.output_files[0]
开发者ID:RorySmith,项目名称:pycbc,代码行数:13,代码来源:injection.py

示例2: veto_injections

# 需要导入模块: from pycbc.workflow.core import Executable [as 别名]
# 或者: from pycbc.workflow.core.Executable import new_output_file_opt [as 别名]
def veto_injections(workflow, inj_file, veto_file, veto_name, out_dir, tags=None):
    tags = [] if tags is None else tags
    make_analysis_dir(out_dir)
    
    node = Executable(workflow.cp, 'strip_injections', ifos=workflow.ifos,
                          out_dir=out_dir, tags=tags).create_node()
    node.add_opt('--segment-name', veto_name)
    node.add_input_opt('--veto-file', veto_file)
    node.add_input_opt('--injection-file', inj_file)
    node.add_opt('--ifos', ' '.join(workflow.ifos))
    node.new_output_file_opt(workflow.analysis_time, '.xml', '--output-file')
    workflow += node
    return node.output_files[0]  
开发者ID:titodalcanton,项目名称:pycbc,代码行数:15,代码来源:injection.py

示例3: compute_inj_optimal_snr

# 需要导入模块: from pycbc.workflow.core import Executable [as 别名]
# 或者: from pycbc.workflow.core.Executable import new_output_file_opt [as 别名]
def compute_inj_optimal_snr(workflow, inj_file, precalc_psd_files, out_dir,
                            tags=None):
    "Set up a job for computing optimal SNRs of a sim_inspiral file."
    if tags is None:
        tags = []

    node = Executable(workflow.cp, 'optimal_snr', ifos=workflow.ifos,
                      out_dir=out_dir, tags=tags).create_node()
    node.add_input_opt('--input-file', inj_file)
    node.add_input_list_opt('--time-varying-psds', precalc_psd_files)
    node.new_output_file_opt(workflow.analysis_time, '.xml', '--output-file')
    workflow += node
    return node.output_files[0]
开发者ID:RorySmith,项目名称:pycbc,代码行数:15,代码来源:injection.py


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