Skip to content

Commit

Permalink
added allow_other_keys for pymatgen decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jul 2, 2018
1 parent 54c9aa8 commit 25f8c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ejplugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def load_all_encoders():
return plugins.load_plugin_classes([Encode_Pymatgen, Encode_ASE])


__version__ = "0.9.2"
__version__ = "0.9.3"
1 change: 1 addition & 0 deletions ejplugins/pymatgen_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Encode_Pymatgen(object):
plugin_descript = 'encode/decode pymatgen.Structure'
objclass = pym.Structure
dict_signature = ['@class', '@module', 'lattice', 'sites']
allow_other_keys = True

def to_json(self, obj):
return obj.as_dict()
Expand Down

0 comments on commit 25f8c2f

Please sign in to comment.