本文整理汇总了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]
示例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]
示例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]