Skip to content
Snippets Groups Projects
Commit 6abf5273 authored by Evan Hall's avatar Evan Hall
Browse files

Check if the trace is a sub-budget

parent f22551c6
No related branches found
No related tags found
1 merge request!60When plotting, extract the total trace from any sub-budgets
from numpy import sqrt
from collections import OrderedDict
def plot_noise(
freq,
......@@ -24,6 +24,8 @@ def plot_noise(
ylim = kwargs.get('ylim')
for name, trace in traces.items():
if isinstance(trace, OrderedDict):
trace = trace['Total']
try:
data, style = trace
except:
......
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