Skip to content
Snippets Groups Projects
Commit 885df3e1 authored by ChiWai Chan's avatar ChiWai Chan
Browse files

cbc_template_fir: whitespace

parent cd35fdc2
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ def generate_template(template_bank_row, approximant, sample_rate, duration, f_l
hplus = fseries
return hplus
def condition_imr_template(approximant, data, epoch_time, sample_rate_max, max_ringtime):
assert -len(data) / sample_rate_max <= epoch_time < 0.0, "Epoch returned follows a different convention"
# find the index for the peak sample using the epoch returned by
......@@ -176,6 +177,7 @@ def condition_imr_template(approximant, data, epoch_time, sample_rate_max, max_r
# done
return data, target_index
def condition_ear_warn_template(approximant, data, epoch_time, sample_rate_max, max_shift_time):
assert -len(data) / sample_rate_max <= epoch_time < 0.0, "Epoch returned follows a different convention"
# find the index for the peak sample using the epoch returned by
......@@ -188,6 +190,7 @@ def condition_ear_warn_template(approximant, data, epoch_time, sample_rate_max,
data = numpy.roll(data, target_index-epoch_index)
return data, target_index
def compute_autocorrelation_mask( autocorrelation ):
'''
Given an autocorrelation time series, estimate the optimal
......
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