Skip to content
Snippets Groups Projects
Commit f4b37dcd authored by Kipp Cannon's avatar Kipp Cannon Committed by Kipp Cannon
Browse files

svd_bank.write_bank(): be careful to only create columns we need

parent 978a279c
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,7 @@ def write_bank(filename, banks, cliplefts = None, cliprights = None, write_psd =
# Apply clipping option to sngl inspiral table
# put the bank table into the output document
new_sngl_table = lsctables.New(lsctables.SnglInspiralTable)
new_sngl_table = lsctables.New(lsctables.SnglInspiralTable, bank.sngl_inspiral_table.columnnames)
for row in bank.sngl_inspiral_table[clipleft:clipright]:
# FIXME need a proper id column
row.Gamma1 = int(bank.bank_id.split("_")[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment