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

ugly/gstlal_plot_channel_psd: file output names more sensible, fixed help...

ugly/gstlal_plot_channel_psd: file output names more sensible, fixed help comments to reflect changes
parent 58f18dc2
No related branches found
No related tags found
No related merge requests found
......@@ -56,11 +56,11 @@ matplotlib.rcParams.update({
#
# ### Usage:
#
# gstlal_plot_channel_psd OUTPUT-NAME PSD-FILE-1 PSD-FILE-2
# gstlal_plot_channel_psd -o OUTPUT-NAME PSD-FILE-1 PSD-FILE-2
#
# e.g.,
#
# gstlal_plot_channel_psd psd.png psd.xml.gz
# gstlal_plot_channel_psd -o psd.png psd.xml.gz
#
color_scheme = ['#332288', '#88CCEE', '#44AA99', '#117733', '#999933', '#DDCC77', '#CC6677', '#882255', '#AA4499']
......@@ -135,15 +135,12 @@ def plot_psds(psds, plot_width = 640):
options, filenames = parse_command_line()
index = 0
for fname in filenames:
index += 1
if options.output:
outname = options.output
else:
outname = os.path.join(os.path.splitext(fname)[0], "%d" % index)
outname = os.path.splitext(fname)[0] + ".png"
fig = plot_psds(
series.read_psd_xmldoc(
ligolw_utils.load_filename(
......
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