Add replay-buffer browser CLI#176
Open
ParamThakkar123 wants to merge 1 commit into
Open
Conversation
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
replaycommand group andreplay browseCLI intools/cli.pythat prints a summary and can launch a local web UI for an HDF5 replay buffer.tools/replay_browser.pyincluding HDF5 metadata parsing for flat and per-episode layouts, episode splitting bydoneflags, and observation/action shape reporting.tools/replay_browser.pyand serve frames/metadata via a small stdlib HTTP server.docs/source/cli.mdwith the new command and optional dependencies, and add tests intests/test_cli.pycovering summary output and PNG rendering with optional-dependency skips.Testing
python -m tools.cli replay browse --helpprints the new command usage successfully.python -m py_compile tools/cli.py tools/replay_browser.pysucceeds to ensure syntax is valid.pytest -q tests/test_cli.py -qwhich passed (9 passed, 2 skipped due to optional replay-browser dependencies being unavailable in the test environment).Codex Task