jaxrens.io.formats¶
Format conversion utilities: WalkerState <-> ASE Atoms <-> HDF5.
Serialization contract¶
The in-memory single-walker type is WalkerState.
On disk / at the callback boundary a walker is a loose dict whose unit-cell
key is box (extxyz/HDF5 convention), and a batched population is a dict
with plural keys positions/types/energies/cells built by
population_record(). This module is the only seam that converts between
the two: ensure_walker_state() / WalkerState.from_record() on the
way in, iter_walker_states() to expand a batched record, and the
walker_to_* writers on the way out. Everything else works with typed
WalkerState objects and attribute access.
Functions
Convert ASE Atoms to WalkerState. |
|
Normalize walker to a |
|
Read WalkerState from an HDF5 group. |
|
Yield one |
|
Build the canonical batched-population serialization dict. |
|
Convert a WalkerState (or loose walker dict) to ASE Atoms. |
|
Write WalkerState arrays into an HDF5 group. |