blackjax.progress_reader

blackjax.progress_reader#

Standalone reader for file-based progress output.

Usage: python -m blackjax.progress_reader /tmp/bjx_progress.txt

Functions#

read_progress(path)

Read '<step> <total>' from path.

main([argv])

Module Contents#

read_progress(path)[source]#

Read ‘<step> <total>’ from path.

Returns:

  • (step, total) tuple of ints, or None if the file does not exist

  • or does not yet contain a parseable "<step> <total>" payload (e.g. it

  • was read mid-write).

main(argv=None)[source]#