Skip to content

Commit

Permalink
Merge pull request #57 from mkhorton/patch-6
Browse files Browse the repository at this point in the history
Fix Store serialization with @Version
  • Loading branch information
Shyam Dwaraknath authored May 22, 2019
2 parents 7b4bcee + c6243d1 commit 16e68fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maggma/stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16e68fc

Please sign in to comment.