Skip to content

Commit

Permalink
summary.py: make sure ulplotdir is created for all cases where it is …
Browse files Browse the repository at this point in the history
…needed
  • Loading branch information
mattpitkin committed Mar 19, 2024
1 parent 0f13400 commit 92844be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cwinpy/pe/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,11 +1260,13 @@ def generate_summary_pages(**kwargs):
homepage.make_heading("Table of results", anchor="table-of-results")
homepage.make_results_table(contents=allresultstable, highlight_psrs=highlight_psrs)

# create upper limits plots
if upperlimitplot:
# create upper limit plot directory
if upperlimitplot or (oddsplot and showodds):
ulplotdir = outpath / "ulplots"
ulplotdir.mkdir(parents=True, exist_ok=True)

# create upper limits plots
if upperlimitplot:
for amp in ampt:
for det in dets:
p = RESULTS_HEADER_FORMATS[amp]["ultablename"].format(det)
Expand Down

0 comments on commit 92844be

Please sign in to comment.