Skip to content

docs: extend README adventures (input editing, gates demo, private schema) + Path fix#16

Open
IanMayo wants to merge 2 commits into
mainfrom
claude/wonderful-noether-ycnjwz
Open

docs: extend README adventures (input editing, gates demo, private schema) + Path fix#16
IanMayo wants to merge 2 commits into
mainfrom
claude/wonderful-noether-ycnjwz

Conversation

@IanMayo

@IanMayo IanMayo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

What

Two things in one branch:

  1. Type-clean the autocomplete example — wrap the input filename in Path(...) in examples/explore_platform.py, since build_platform_from_file is annotated to take a Path. Removes a Pylance warning in the shipped learning file. (We chose to keep the builder API Path-strict rather than widen it.)

  2. Extend the README "Self-guided adventures" — fold in the genuinely-missing hands-on material that the open PLAYGROUND.md proposal (docs: add PLAYGROUND.md hands-on guide #12) had but our README lacked:

    • Adventure 1: edit examples/calculation_input.xml and re-run to watch the validated output change; then break it on purpose (negative/non-numeric BandCount) to see the gate reject it, print the reason, exit non-zero, and write no stale artifact.
    • Adventure 2: show serialize.to_xml(platform) in the REPL — the same object, as XML.
    • Adventure 5 (new): point the CLI at the gitignored private/ real schema (generate/validate/compare against private/ paths), including the caveat that acoustic pipeline imports the committed models so it can't run end-to-end on real models without a reviewed change.

Verification

  • python examples/explore_platform.py runs; mypy clean on it.
  • ruff check src tests passes; full pytest suite (41 tests) passes.
  • Every command and the break-it-on-purpose error output was run end-to-end before documenting. private/ is confirmed gitignored; the section avoids referencing files that don't exist yet.

🤖 Generated with Claude Code


Generated by Claude Code

claude added 2 commits June 20, 2026 18:25
Wrap the input filename in Path(...) so the scratch file type-checks
cleanly under Pylance — the builder is annotated to take a Path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHAkhfmfcCdWTHZuvRcJNF
…ivate-schema path

Fold in the hands-on bits from the PLAYGROUND.md proposal (#12):
- Adventure 1: edit examples/calculation_input.xml and re-run; break it
  on purpose to watch the gate reject invalid input with no stale artifact.
- Adventure 2: show serialize.to_xml in the REPL.
- Adventure 5 (new): point the CLI at the gitignored private/ real schema
  via generate/validate/compare, with the caveat that full pipeline imports
  the committed models.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHAkhfmfcCdWTHZuvRcJNF
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://DeepBlueCLtd.github.io/python-party/pr-preview/pr-16/

Built to branch gh-pages at 2026-06-20 18:56 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants