RECallback

class jaxrens.cli.monitor.RECallback(logger_obj)[source]

Bases: object

Writes per-fire inter-RE swap counts to HDF5.

Reads info["inter_re_stats"] (populated by run_loop when the manager fires) and forwards the per-pair counts to an RELogger. Skips iterations on which the manager did not fire (info key absent or n_attempted_per_pair is empty / sums to zero) — the resulting file’s iteration index is therefore the authoritative record of when the manager actually did work.

Parameters:

logger_obj (Any) – A ready-to-use RELogger instance.