Skip to content

Commit

Permalink
Making sure pygrb webpage is generated after all results files are pr…
Browse files Browse the repository at this point in the history
…oduced
  • Loading branch information
pannarale committed Jan 30, 2025
1 parent 178a742 commit 060243a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions bin/pygrb/pycbc_pygrb_results_workflow
Original file line number Diff line number Diff line change
Expand Up @@ -735,16 +735,6 @@ _workflow.makedir(rdir['workflow/input_map'])
_workflow.makedir(rdir['workflow/output_map'])
_workflow.makedir(rdir['workflow/planning'])

logging.info(
"Path for make_results_web_page: %s", os.path.join(os.getcwd(), rdir.base)
)
_workflow.make_results_web_page(
wflow,
os.path.join(os.getcwd(), rdir.base),
template='red',
explicit_dependencies=plotting_nodes + html_nodes,
)

# Protect the open box results folder
out_dir = rdir['open_box']
_workflow.makedir(out_dir)
Expand Down Expand Up @@ -832,6 +822,17 @@ for inj_set in inj_sets:
eff_layout += [(eff_plot, excl_dist_table[0])]
layout.two_column_layout(out_dir, eff_layout)

# Job to gather all html material in the webpage
logging.info(
"Path for make_results_web_page: %s", os.path.join(os.getcwd(), rdir.base)
)
_workflow.make_results_web_page(
wflow,
os.path.join(os.getcwd(), rdir.base),
template='red',
explicit_dependencies=plotting_nodes + html_nodes,
)

# Close the log and flush to the html file
logging.shutdown()
with open(wf_log_file.storage_path, "r") as logfile:
Expand Down

0 comments on commit 060243a

Please sign in to comment.