Skip to content
Snippets Groups Projects
Commit 4ea9fa5f authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_inspiral_plot_sensitivity: fix import error

parent 2aa3cdf6
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ from lal import rate
from lal.utils import CacheEntry
from gstlal import imr_utils
from gstlal import dagparts
from gstlal import datafind
from gstlal.plots import sensitivity as plotsens
from matplotlib import pyplot
......@@ -596,7 +596,7 @@ for bin_type in opts.bin_types:
ifostr = "%s_%s" % (UL.searched_instruments, "".join(sorted(instr)))
for fig, plot_type in zip((fig_far, fig_far_range, fig_snr, fig_eff), ("VOLUME_VS_FAR", "RANGE_VS_FAR", "VOLUME_VS_SNR", "EFFICIENCY")):
plot_desc = f"GSTLAL_INSPIRAL_PLOT_SENSITIVITY_{plot_type}_{opts.user_tag}_BINNED_BY_{bin_type.upper()}"
tag = dagparts.T050017_filename(ifostr, plot_desc, (UL.start_time, UL.end_time), ".png", path = opts.output_dir)
tag = datafind.T050017_filename(ifostr, plot_desc, (UL.start_time, UL.end_time), ".png", path = opts.output_dir)
fig.savefig(tag)
pyplot.close(fig)
......
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