From c80bcc4933e98d49d094278b31795323fe2999ce Mon Sep 17 00:00:00 2001
From: Kipp Cannon <kipp.cannon@ligo.org>
Date: Mon, 16 Oct 2017 02:39:56 -0700
Subject: [PATCH] gstlal_play:  simplify high/low pass filter if statements

---
 gstlal/bin/gstlal_play | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/gstlal/bin/gstlal_play b/gstlal/bin/gstlal_play
index c2a5734cbf..d6c93aef0a 100755
--- a/gstlal/bin/gstlal_play
+++ b/gstlal/bin/gstlal_play
@@ -210,11 +210,10 @@ else:
 # handle filtering
 if options.high_pass_filter is not None and options.low_pass_filter is not None:
 	head = pipeparts.mkaudiochebband(pipeline, head, lower_frequency = options.high_pass_filter, upper_frequency = options.low_pass_filter)
-else:
-	if options.high_pass_filter is not None:
-		head = pipeparts.mkaudiocheblimit(pipeline, head, cutoff = options.high_pass_filter, mode = "high-pass")
-	elif options.low_pass_filter is not None:
-		head = pipeparts.mkaudiocheblimit(pipeline, head, cutoff = options.low_pass_filter, mode = "low-pass")
+elif options.high_pass_filter is not None:
+	head = pipeparts.mkaudiocheblimit(pipeline, head, cutoff = options.high_pass_filter, mode = "high-pass")
+elif options.low_pass_filter is not None:
+	head = pipeparts.mkaudiocheblimit(pipeline, head, cutoff = options.low_pass_filter, mode = "low-pass")
 
 # necessary audio convert and amplify 
 head = pipeparts.mkaudioconvert(pipeline, pipeparts.mkaudioamplify(pipeline, head, options.amplification))
-- 
GitLab