File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -412,20 +412,19 @@ class GenUniformWaveform(object):
412412 else :
413413 buff_len = 1.0 / self .delta_f
414414
415+ if kwds ['approximant' ] in pycbc .waveform .td_approximants () or args .use_td_waveform :
416+
417+ hp , hc = pycbc .waveform .get_td_waveform (delta_t = 1.0 / args .sample_rate ,
418+ ** kwds )
419+
420+ hp = hp .to_frequencyseries (delta_f = 1.0 / buff_len )
421+ hc = hc .to_frequencyseries (delta_f = 1.0 / buff_len )
422+
415423 if kwds ['approximant' ] in pycbc .waveform .fd_approximants ():
416424
417- # Optionally generate time-domain waveform
418- if args .use_td_waveform :
419- hp , hc = pycbc .waveform .get_td_waveform (delta_t = 1.0 / args .sample_rate ,
420- ** kwds )
425+ hp , hc = pycbc .waveform .get_fd_waveform (delta_f = 1.0 / buff_len ,
426+ ** kwds )
421427
422- hp = hp .to_frequencyseries (delta_f = 1.0 / buff_len )
423- hc = hc .to_frequencyseries (delta_f = 1.0 / buff_len )
424-
425- else :
426- hp , hc = pycbc .waveform .get_fd_waveform (delta_f = 1.0 / buff_len ,
427- ** kwds )
428-
429428 if args .use_cross :
430429 hp = hc
431430
You can’t perform that action at this time.
0 commit comments