本文整理匯總了Python中pycbc.workflow.core.Executable.add_input_opt方法的典型用法代碼示例。如果您正苦於以下問題:Python Executable.add_input_opt方法的具體用法?Python Executable.add_input_opt怎麽用?Python Executable.add_input_opt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pycbc.workflow.core.Executable
的用法示例。
在下文中一共展示了Executable.add_input_opt方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: cut_distant_injections
# 需要導入模塊: from pycbc.workflow.core import Executable [as 別名]
# 或者: from pycbc.workflow.core.Executable import add_input_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 add_input_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 add_input_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]