Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions bin/bank/pycbc_brute_bank
Original file line number Diff line number Diff line change
Expand Up @@ -419,20 +419,19 @@ class GenUniformWaveform(object):
else:
buff_len = 1.0 / self.delta_f

if kwds['approximant'] in pycbc.waveform.td_approximants() or args.use_td_waveform:

hp, hc = pycbc.waveform.get_td_waveform(delta_t=1.0 / args.sample_rate,
**kwds)

hp = hp.to_frequencyseries(delta_f = 1.0 / buff_len)
hc = hc.to_frequencyseries(delta_f = 1.0 / buff_len)

if kwds['approximant'] in pycbc.waveform.fd_approximants():

# Optionally generate time-domain waveform
if args.use_td_waveform:
hp, hc = pycbc.waveform.get_td_waveform(delta_t=1.0 / args.sample_rate,
**kwds)
hp, hc = pycbc.waveform.get_fd_waveform(delta_f = 1.0 / buff_len,
**kwds)

hp = hp.to_frequencyseries(delta_f = 1.0 / buff_len)
hc = hc.to_frequencyseries(delta_f = 1.0 / buff_len)

else:
hp, hc = pycbc.waveform.get_fd_waveform(delta_f = 1.0 / buff_len,
**kwds)

if args.use_cross:
hp = hc

Expand Down
Loading