Skip to content
Snippets Groups Projects
Commit dce4bd4a authored by ChiWai Chan's avatar ChiWai Chan
Browse files

gstlal_inspiral_pipe and gstlal_inspiral_summary_page: change the glob path...

gstlal_inspiral_pipe and gstlal_inspiral_summary_page: change the glob path back to 'plots' to follow the new-style DAGs workflow (fix me later with the files in the 'plots' directory become numerous).
parent 94ea99ff
No related branches found
No related tags found
1 merge request!114Plot horizon distance from ranking statistics
......@@ -44,7 +44,6 @@ __author__ = 'Chad Hanna <chad.hanna@ligo.org>, Patrick Godwin <patrick.godwin@l
from collections import OrderedDict
from optparse import OptionParser
from pathlib import Path
import os
import warnings
......@@ -363,7 +362,6 @@ if __name__ == '__main__':
# output directories
output_dir = "plots"
try:
os.mkdir(Path(output_dir) / "horizon_distance")
os.mkdir("logs")
except:
pass
......@@ -437,7 +435,7 @@ if __name__ == '__main__':
marg_nodes = inspiral_pipe.marginalize_layer(dag, jobs, svd_nodes, lloid_output, lloid_diststats, options, boundary_seg, instrument_set, model_node, model_file, ref_psd, svd_dtdphi_map, options.idq_file)
# plot the horizon distance from ranking stats
inspiral_pipe.horizon_dist_layer(dag, jobs, marg_nodes, Path(output_dir) / "horizon_history", instruments)
inspiral_pipe.horizon_dist_layer(dag, jobs, marg_nodes, output_dir, instruments)
# calc rank PDF jobs
rankpdf_nodes, rankpdf_zerolag_nodes = inspiral_pipe.calc_rank_pdf_layer(dag, jobs, marg_nodes, options, boundary_seg, instrument_set)
......
......@@ -144,7 +144,7 @@ injrecovery += report.ImageGrid("Effective Spin Accuracy", grid_size=3, footer="
injrecovery += report.ImageGrid("SNR Recovery", grid_size=3, footer="Injected expected SNR vs recovered SNR").glob(os.path.join(opts.glob_path, '*2_SNR_*.png'))
imgfooter = "This is the distance at which you should see a 1.4 1.4 Msun binary at SNR 8. The first panel shows the time evolution of the horizon distance and the second panel shows the same information in histogram form."
injrecovery += report.ImagePagination("Horizon distance", footer=imgfooter).glob(os.path.join(opts.glob_path, 'horizon_distance/*HORIZON*.png'))
injrecovery += report.ImagePagination("Horizon distance", footer=imgfooter).glob(os.path.join(opts.glob_path, '*HORIZON*.png'))
#
# Add injection missed / found content
......@@ -368,7 +368,7 @@ summary += report.Table('Search Summary').save(tabledata, opts.webserver_dir+'_l
## Include horizon distance plots
imgfooter = "This is the distance at which you should see a 1.4 1.4 Msun binary at SNR 8. The first panel shows the time evolution of the horizon distance and the second panel shows the same information in histogram form."
summary += report.ImagePagination("Horizon distance", footer=imgfooter).glob(os.path.join(opts.glob_path, 'horizon_distance/*HORIZON*.png'))
summary += report.ImagePagination("Horizon distance", footer=imgfooter).glob(os.path.join(opts.glob_path, '*HORIZON*.png'))
## Include found/missed as function of decisive characteristic SNR
summary += report.Header("Found / Missed Expected SNR")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment