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

svd_bank.py: fix a bug that causes the wrong template id to be used when reading svd bank file.

parent ef3cd8b5
No related branches found
No related tags found
No related merge requests found
......@@ -509,6 +509,7 @@ def read_banks(filename, contenthandler, verbose = False):
banks.append(bank)
template_id, func = horizon_distance_func(banks)
template_id = abs(template_id) # make sure horizon_distance_func did not pick the noise model template
horizon_norm = None
for bank in banks:
if template_id in bank.horizon_factors and bank.bank_type == "signal_model":
......
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