diff --git a/gstlal/python/psd.py b/gstlal/python/psd.py
index 88c8d125f8d0c616fcb8e3891bd8f5a896612caf..09bb6f721c5ca677b59d99577e55170db045550e 100644
--- a/gstlal/python/psd.py
+++ b/gstlal/python/psd.py
@@ -178,7 +178,13 @@ def measure_psd(gw_data_source_info, instrument, rate, psd_fft_length = 8, verbo
 	stream.resample(quality=9) \
 		.capsfilter(f"audio/x-raw, rate={rate:d}") \
 		.queue(max_size_buffers=8) \
-		.whiten(psd_mode=0, zero_pad=0, fft_length=psd_fft_length, average_samples=average_samples, median_samples=7) \
+		.whiten(
+			psd_mode=0,
+			zero_pad=0,
+			fft_length=psd_fft_length,
+			average_samples=average_samples,
+			median_samples=7
+		) \
 		.fakesink()
 
 	#