Skip to content
Snippets Groups Projects
Commit 8d118a7c authored by Surabhi Sachdev's avatar Surabhi Sachdev Committed by Kipp Cannon
Browse files

fix fhigh for waveform generation IMR case, broken by the early warning patch

parent 222ed2d3
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,8 @@ def generate_templates(template_table, approximant, psd, f_low, time_slices, aut
sample_rate_max = max(time_slices['rate'])
duration = max(time_slices['end'])
length_max = int(round(duration * sample_rate_max))
if fhigh is None:
fhigh = sample_rate_max/2.
# Some input checking to avoid incomprehensible error messages
if not template_table:
raise ValueError("template list is empty")
......
......@@ -240,7 +240,10 @@ def build_bank(template_bank_url, psd, flow, ortho_gate_fap, snr_threshold, svd_
sample_rate = sample_rate,
verbose=verbose)
fhigh=check_ffinal_and_find_max_ffinal(bank_xmldoc)
if sample_rate is not None:
fhigh=check_ffinal_and_find_max_ffinal(bank_xmldoc)
else:
fhigh=None
# Generate templates, perform SVD, get orthogonal basis
# and store as Bank object
bank = Bank(
......
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