From 6d314781909672ba45eb75b5fcc5cf4e8629a493 Mon Sep 17 00:00:00 2001 From: Francesco Pannarale Date: Thu, 19 Sep 2024 18:37:33 +0200 Subject: [PATCH] Enable handling of all pycbc_pygrb_efficiency in workflow (#4873) * Enable handling json file output from pycbc_pygrb_efficiency in pygrb workflow * Removing resolve_url_to_file --- pycbc/workflow/grb_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pycbc/workflow/grb_utils.py b/pycbc/workflow/grb_utils.py index f0db2f38f69..6cb5034a297 100644 --- a/pycbc/workflow/grb_utils.py +++ b/pycbc/workflow/grb_utils.py @@ -526,7 +526,11 @@ def make_pygrb_plot(workflow, exec_name, out_dir, node.new_output_file_opt(workflow.analysis_time, '.png', '--onsource-output-file', tags=extra_tags+['onsource']) + node.new_output_file_opt(workflow.analysis_time, '.json', + '--exclusion-dist-output-file', + tags=extra_tags) node.add_opt('--injection-set-name', tags[1]) + node.add_opt('--trial-name', tags[0]) else: node.new_output_file_opt(workflow.analysis_time, '.png', '--output-file', tags=extra_tags) @@ -539,6 +543,7 @@ def make_pygrb_plot(workflow, exec_name, out_dir, node.add_opt('--y-variable', tags[0]) # Quantity to be displayed on the x-axis of the plot elif exec_name == 'pygrb_plot_stats_distribution': + node.add_input_list_opt('--seg-files', seg_files) node.add_opt('--x-variable', tags[0]) elif exec_name == 'pygrb_plot_injs_results': # Variables to plot on x and y axes