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

gstlal_inspiral_plot_snr: sort IFOs in plot names

parent 630eea61
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,6 @@ for url in urls: ...@@ -63,6 +63,6 @@ for url in urls:
for row, snrs_group in enumerate(zip(*SNRs_dict.values())): for row, snrs_group in enumerate(zip(*SNRs_dict.values())):
figure = plotsnr.plot_snr(dict(zip(SNRs_dict.keys(), zip(snrs_group))), width = options.width, center = options.center, span = options.span, verbose = options.verbose) figure = plotsnr.plot_snr(dict(zip(SNRs_dict.keys(), zip(snrs_group))), width = options.width, center = options.center, span = options.span, verbose = options.verbose)
if len(zip(*SNRs_dict.values())) == 1: if len(zip(*SNRs_dict.values())) == 1:
figure.savefig(os.path.join(options.outdir, "%s-" % "".join(SNRs_dict.keys()) + description + segment + suffix)) figure.savefig(os.path.join(options.outdir, "%s-" % "".join(sorted(SNRs_dict.keys())) + description + segment + suffix))
else: else:
figure.savefig(os.path.join(options.outdir, "%s-" % "".join(SNRs_dict.keys()) + description + "-"+ str(row) + segment + suffix)) figure.savefig(os.path.join(options.outdir, "%s-" % "".join(sorted(SNRs_dict.keys())) + description + "-"+ str(row) + segment + suffix))
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