From e345d4bb4d98c1d872e53c1d993732349a610ac4 Mon Sep 17 00:00:00 2001
From: Jameson Graef Rollins <jrollins@finestructure.net>
Date: Thu, 13 Feb 2020 12:28:56 -0800
Subject: [PATCH] fix plotting of nested traces

Use more generic collections.abc.Mapping to detect a nested dict.
---
 gwinc/plot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gwinc/plot.py b/gwinc/plot.py
index a22abe00..f29b70dc 100644
--- a/gwinc/plot.py
+++ b/gwinc/plot.py
@@ -1,5 +1,5 @@
 from numpy import sqrt
-from collections import OrderedDict
+from collections.abc import Mapping
 
 
 def plot_noise(
@@ -25,7 +25,7 @@ def plot_noise(
     ylim = kwargs.get('ylim')
 
     for name, trace in traces.items():
-        if isinstance(trace, OrderedDict):
+        if isinstance(trace, Mapping):
             trace = trace['Total']
         try:
             data, style = trace
-- 
GitLab