MSONAtoms
may not serialize appropriately if the .info
flag is populated
#3668
Labels
MSONAtoms
may not serialize appropriately if the .info
flag is populated
#3668
Python version
3.9+
Pymatgen version
2024.3.1
Operating system version
No response
Current behavior
The recently introduced
MSONAtoms
class in #3619 gives Pymatgen additional flexibility in making ASEAtoms
objectsMSONable
, helping with lossless (de)serialization. This method generally works well, but JSON serialization can fail if the.info
attribute of theAtoms
object contains anMSONable
entry.Expected Behavior
The
MSONAtoms
should be JSON serializable via the variousmonty
utilities (for instance).Minimal example
or...
In both cases, you get
The text was updated successfully, but these errors were encountered: