Skip to content
Snippets Groups Projects
Commit 42dcc031 authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal-inspiral/bin/gstlal_add_spins_to_bank: force body 1 to be the lighter body by convention

parent 674ca7a6
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,8 @@ def parse_command_line():
parser = OptionParser()
parser.add_option("--output", metavar = "file", default = ".", help = "Set the name of the output file")
parser.add_option("--input", metavar = "file", default = ".", help = "Set the name of the input file")
parser.add_option("--spin1z", action="append", help="values of spin1z to populate, give multiple times")
parser.add_option("--spin2z", action="append", help="values of spin2z to populate, give multiple times")
parser.add_option("--spin1z", action="append", help="values of spin1z to populate, give multiple times: convention body 1 is the lighter body")
parser.add_option("--spin2z", action="append", help="values of spin2z to populate, give multiple times: convention body 1 is the lighter body")
parser.add_option("--approximant", help = "override approximant with this value")
parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.")
options, filenames = parser.parse_args()
......@@ -57,7 +57,10 @@ new_rows = []
for row in sngl_inspiral_table:
for spin1z in options.spin1z:
for spin2z in options.spin2z:
#FIXME populate the ending frequency
#FIXME populate the ending frequency
# swap masses to obey mass 1 is the lighter body
if row.mass1 > row.mass2:
row.mass1, row.mass2 = row.mass2, row.mass1
row.spin1z=float(spin1z)
row.spin2z=float(spin2z)
new_rows.append(copy.deepcopy(row))
......
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