Commit 155696d6 authored by Kipp Cannon's avatar Kipp Cannon

inspiral_pipe.T050017_filename(): detection of non-string input broken

- was causing plot_background to generate files named things like 1H-GSTLAL...
parent 16a369f9
......@@ -356,7 +356,7 @@ def T050017_filename(instruments, description, start, end, extension, path = Non
"""!
A function to generate a T050017 filename.
"""
if type(instruments) != type(str()):
if not isinstance(instruments, basestring):
instruments = "".join(sorted(instruments))
duration = end - start
extension = extension.strip('.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment