From 8212c5e6695edf2452d3f751a3bda08a995361f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Segonds?= Date: Tue, 14 Mar 2017 20:09:59 +0100 Subject: [PATCH] fix bad json deserialisation in python3.6 close #229 #218 --- pypot/utils/interpolation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypot/utils/interpolation.py b/pypot/utils/interpolation.py index 42cef673..6afd6f03 100644 --- a/pypot/utils/interpolation.py +++ b/pypot/utils/interpolation.py @@ -77,7 +77,7 @@ def update(self, *args, **kwargs): raise TypeError("update expected at most 1 arguments, got %d" % len(args)) other = dict(*args, **kwargs) for key in other: - self[key] = other[key] + self[float(key)] = other[key] def generate_tree(self): self.__tree = cKDTree(self.__keys)