Repository navigation
Export playground setups as Python scripts; release 2.3.1 - #33
Merged
Merged
Conversation
Add "Set up" and "Last run" export buttons to the run card. Both write an editable script that rebuilds the simulation through the public DEISM API: geometry and per-wall materials (convex wall centers keep their material rows), sampled directivities resolved to the original MAT files, frequency settings, optional fluctuations, and RTF/RIR output. "Set up" exports the validated current controls; "Last run" exports the snapshot captured when the last successful run was dispatched, so later edits or failed runs do not change it. The local launcher gains a POST /export-script endpoint that saves the script under playground/scripts/ (git-ignored) with exclusive-create names and returns the path, which the page shows in a wrapping status line; the standalone demo reports that the launcher is required. Unfixed fluctuations now draw their seed on the page before dispatch, so the seed is recorded in both the export and the result archive. Running an exported script computes the RTF/RIR in memory and plots it; it writes no result files. Parity tests execute browser-generated scripts against the native adapter, including a 32-case MIX matrix over room type, output mode, fluctuations and source/receiver directivity. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Add the 2.3.1 changelog section for the playground Python export, note that the sampled-directivity datasets stay attached to the v2.3.0 release, and restore the blank line before the 2.2.1.16 heading that docutils reported as an unindented bullet list. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
DEISMAPI: room geometry (convex wall centers keep their material rows; vertices are world coordinates, the rotation only turns the acoustic frames), per-wall materials, sampled directivities resolved to the original MAT files (DATA_DIR/DEISM_DATA_DIR, never downloaded), frequency settings, optional fluctuations and RTF/RIR output. Running it computes the result in memory and plots it; it writes no files.deism-playgroundsaves exports through a newPOST /export-scriptendpoint intoplayground/scripts/(git-ignored) asdeism_setup.py/deism_lastrun.py, numbering repeats so nothing is overwritten. The page shows the saved path in a wrapping status line and the console prints it. The standalonedemo.htmlcannot write to a project folder and says so.DATASET_RELEASEstaysv2.3.0(the MAT assets live there) and the JavaScript engine (2.3.0-js) is untouched.Test plan
npm testinplayground/: 53 passed (engine, presentation, workflow, export snapshot and save-endpoint tests)pytest tests/test_playground_python_export.py tests/test_playground_result_storage.py --require-directivity-data: 64 passed, including the 32-case MIX matrix (shoebox/convex × RTF/RIR × fluctuations × source/receiver directivity) with seed reproducibility in both workflowsdemo.html/native.htmlrebuilt from the sources withtools/playground_build.py(byte-identical to the committed bundles)docs/changelog.rstparses cleanly with docutils (a pre-existing missing blank line before the 2.2.1.16 heading is fixed)After merge
Tag the merge commit
v2.3.1and create the GitHub release (no assets needed); publishing the release triggers the wheel build and PyPI upload.🤖 Generated with Claude Code