Skip to content
Snippets Groups Projects
Commit 38e862b5 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

only use budget noises when calculating budget total

This fixes a bug whereby references traces were being included in the sum
total.
parent 5297a8a6
No related branches found
No related tags found
No related merge requests found
......@@ -543,7 +543,7 @@ class Budget(Noise):
_precomp=_precomp,
)
budget.append(trace)
total = quadsum([trace.psd for trace in budget])
total = quadsum([trace.psd for trace in budget if trace.name in self._budget_noises])
return self._make_trace(
psd=total, budget=budget
)
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