Skip to content

Commit

Permalink
Merge pull request #376 from lppekows/psd_edge_case
Browse files Browse the repository at this point in the history
Fix for case where workflow doesn't have a psd section
  • Loading branch information
duncan-brown committed Sep 27, 2015
2 parents c790a8a + 2768ea8 commit 28fa8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycbc/workflow/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def make_spectrum_plot(workflow, psd_files, out_dir, tags=None, precalc_psd_file
node.add_input_list_opt('--psd-files', psd_files)
node.new_output_file_opt(workflow.analysis_time, '.png', '--output-file')

if precalc_psd_files is not None:
if precalc_psd_files is not None and len(precalc_psd_files) > 0:
node.add_input_list_opt('--psd-file', precalc_psd_files)

workflow += node
Expand Down

0 comments on commit 28fa8ec

Please sign in to comment.