iter_walker_states

jaxrens.io.formats.iter_walker_states(record)[source]

Yield one WalkerState per walker from a batched population record.

The batched record is the plural-keyed dict produced by population_record(). This is the single reader that turns it back into the typed per-walker form the writers consume, so the writers no longer rebuild ad-hoc {"positions": …, "box": …} dicts per walker. Arrays are coerced to JAX arrays to satisfy WalkerState’s field types.

Parameters:

record (Mapping[str, Any])

Return type:

Iterator[WalkerState]