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

svd_bank.py: set bank.processed_psd to None if raw_psd is None to avoid AttributeError.

parent 3c2aef12
No related branches found
No related tags found
No related merge requests found
......@@ -460,6 +460,8 @@ def read_banks(filename, contenthandler, verbose = False):
if raw_psd is not None:
# reproduce the whitening psd and attach a reference to the psd
bank.processed_psd = cbc_template_fir.condition_psd(raw_psd, bank.newdeltaF, minfs = (bank.working_f_low, bank.f_low), maxfs = (bank.sample_rate_max / 2.0 * 0.90, bank.sample_rate_max / 2.0))
else:
bank.processed_psd = None
# Read bank fragments
bank.bank_fragments = []
......
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