From ef1b6b6a5464fe18f879e1530a011c840f4d4411 Mon Sep 17 00:00:00 2001
From: Aaron Viets <aaron.viets@ligo.org>
Date: Tue, 19 Jun 2018 20:29:01 -0700
Subject: [PATCH] calibration_parts.py:  fixed bug in compute_rms()

---
 gstlal-calibration/bin/gstlal_compute_strain   | 2 +-
 gstlal-calibration/python/calibration_parts.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gstlal-calibration/bin/gstlal_compute_strain b/gstlal-calibration/bin/gstlal_compute_strain
index eb8620b62b..f8b259e360 100755
--- a/gstlal-calibration/bin/gstlal_compute_strain
+++ b/gstlal-calibration/bin/gstlal_compute_strain
@@ -846,7 +846,7 @@ if not options.no_kappac or not options.no_fcc or not options.no_kappapu or not
 
 	kpu = pipeparts.mktee(pipeline, kpu)
 
-	# Put off smoothing \kappa_pu until after \kappa_tst is computed in case we are correcting the phase of \kappa_pu using \kappa_tst
+	# Put off smoothing \kappa_pu in case we are correcting the phase of \kappa_pu using \kappa_tst
 
 	# If desired, correct the phase of \kappa_pu using \kappa_tst (This assumes that all stages of actuation have the same variable time delay, and that \kappa_tst is doing a better job of measuring it)
 	if options.act_timing_from_kappatst:
diff --git a/gstlal-calibration/python/calibration_parts.py b/gstlal-calibration/python/calibration_parts.py
index bf79dab28d..989812163e 100644
--- a/gstlal-calibration/python/calibration_parts.py
+++ b/gstlal-calibration/python/calibration_parts.py
@@ -383,7 +383,7 @@ def compute_rms(pipeline, head, rate, average_time, f_min = None, f_max = None,
 	head = mkpow(pipeline, head, exponent = 2.0)
 
 	# Downsample again to save computational cost
-	head = mkresample(pipeline, head, 3, filter_latency == 0.0, rate_out)
+	head = mkresample(pipeline, head, 4, filter_latency == 0.0, rate_out)
 
 	# Compute running average
 	head = pipeparts.mkgeneric(pipeline, head, "lal_smoothkappas", default_kappa_re = 0.0, array_size = 1, avg_array_size = average_time * rate_out, filter_latency = filter_latency)
-- 
GitLab