Skip to content
Snippets Groups Projects
Commit 392fed54 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

lloidparts.mkLLOIDmulti(): fix itac peak finding calculation

- was using "rates" variable with undefined initialization
parent 1673f062
No related branches found
No related tags found
No related merge requests found
......@@ -1090,7 +1090,7 @@ def mkLLOIDmulti(pipeline, detectors, banks, psd, psd_fft_length = 32, ht_gate_t
if chisq_type == 'autochisq':
# FIXME don't hardcode
# peak finding window (n) in samples is 1 second at max rate, ie max(rates)
head = pipeparts.mkitac(pipeline, snr, 1 * max(rates), bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = bank.snr_threshold, sigmasq = bank.sigmasq)
head = pipeparts.mkitac(pipeline, snr, 1 * max(bank.get_rates()), bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = bank.snr_threshold, sigmasq = bank.sigmasq)
if verbose:
head = pipeparts.mkprogressreport(pipeline, head, "progress_xml_%s" % suffix)
triggersrcs[instrument].add(head)
......
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