deMonPy.encoder
Back to DeMonNanoPy API Reference
Description
JSON encoder for NumPy and ASE objects.
Source file: deMonPy/encoder.py
Classes
AseEncoder (json.JSONEncoder)
Serialises NumPy scalars/arrays, sets and ase.Atoms objects.
Methods
| Method | Signature | Description |
|---|---|---|
default |
default(obj) |
JSON hook for NumPy/ASE types (arrays to lists, Atoms to dict). |