From 56ca221f8c9e1dbbd33ef673d102927ea7d5fe3f Mon Sep 17 00:00:00 2001 From: Eric Hunsberger Date: Wed, 2 Dec 2020 10:16:32 -0500 Subject: [PATCH] Get Mapping from collections.abc --- nengo_dl/signals.py | 3 ++- nengo_dl/simulator.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nengo_dl/signals.py b/nengo_dl/signals.py index c3bf15e38..cfbbcc52a 100644 --- a/nengo_dl/signals.py +++ b/nengo_dl/signals.py @@ -3,7 +3,8 @@ """ import logging -from collections import Mapping, defaultdict +from collections import defaultdict +from collections.abc import Mapping import numpy as np import tensorflow as tf diff --git a/nengo_dl/simulator.py b/nengo_dl/simulator.py index 9681a8085..b65c25ddc 100644 --- a/nengo_dl/simulator.py +++ b/nengo_dl/simulator.py @@ -2121,7 +2121,7 @@ def __getattribute__(self, name): return super().__getattribute__(name) -class SimulationData(collections.Mapping): +class SimulationData(collections.abc.Mapping): """ Data structure used to access simulation data from the model.