From ae736f7d16965b784df8c45236045b7ca8bdf267 Mon Sep 17 00:00:00 2001
From: Kipp Cannon <kipp.cannon@ligo.org>
Date: Fri, 15 Feb 2019 01:55:22 +0900
Subject: [PATCH] svd_bank.py:  fix column names in output

- use .copy() method of Table objects to obtain copy to ensure column names
  are always the same as the original.
---
 gstlal-inspiral/python/svd_bank.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gstlal-inspiral/python/svd_bank.py b/gstlal-inspiral/python/svd_bank.py
index ff8927bbce..631fe73aa7 100644
--- a/gstlal-inspiral/python/svd_bank.py
+++ b/gstlal-inspiral/python/svd_bank.py
@@ -285,7 +285,7 @@ def write_bank(filename, banks, cliplefts = None, cliprights = None, verbose = F
 
 		# Apply clipping option to sngl inspiral table
 		# put the bank table into the output document
-		new_sngl_table = lsctables.New(lsctables.SnglInspiralTable, bank.sngl_inspiral_table.columnnames)
+		new_sngl_table = bank.sngl_inspiral_table.copy()
 		for row in bank.sngl_inspiral_table[clipleft:clipright]:
 			# FIXME need a proper id column
 			row.Gamma1 = int(bank.bank_id.split("_")[0])
-- 
GitLab