From 2c0d7c1242908ca03267c34a142e0abcd24e7a59 Mon Sep 17 00:00:00 2001
From: Cody Messick <cody.messick@ligo.org>
Date: Tue, 3 Sep 2019 08:58:19 -0500
Subject: [PATCH] gstlal_inspiral_plot_banks: Switch from using mtotal column
 of template bank to adding m1 and m2, due to O3 bank not having mtotal column
 populated in imbh region

---
 gstlal-inspiral/bin/gstlal_inspiral_plot_banks | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gstlal-inspiral/bin/gstlal_inspiral_plot_banks b/gstlal-inspiral/bin/gstlal_inspiral_plot_banks
index 31e854685b..9828ebd2b0 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral_plot_banks
+++ b/gstlal-inspiral/bin/gstlal_inspiral_plot_banks
@@ -98,13 +98,13 @@ def mtotal(row):
 	return row.mass1 + row.mass2
 
 def eta(row):
-	return row.mass1 * row.mass2 / row.mtotal**2.
+	return row.mass1 * row.mass2 / mtotal(row)**2.
 
 def mchirp(row):
-	return row.mtotal * row.eta**0.6
+	return mtotal(row) * row.eta**0.6
 
 def chi(row):
-	return (row.mass1 * row.spin1z + row.mass2 * row.spin2z) / row.mtotal
+	return (row.mass1 * row.spin1z + row.mass2 * row.spin2z) / mtotal(row)
 
 def marker_and_size(n):
 	if n > 2000:
-- 
GitLab