From c6243d1659d799b98c5f22745d008c600f8ed9ab Mon Sep 17 00:00:00 2001 From: Matthew Horton Date: Wed, 22 May 2019 10:19:35 -0700 Subject: [PATCH] Fix Store serialization with @version --- maggma/stores.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maggma/stores.py b/maggma/stores.py index 51a9380f0..5edb6adfd 100644 --- a/maggma/stores.py +++ b/maggma/stores.py @@ -195,6 +195,8 @@ def __getstate__(self): def __setstate__(self, d): del d["@class"] del d["@module"] + if "@version" in d: + del d["@version"] md = MontyDecoder() d = md.process_decoded(d) self.__init__(**d)