Repository navigation
Feature/studio - #45
Merged
Merged
Conversation
`pythonfmu3 studio [folder]` opens a browser app with four views: - Editor: edit a model script; on save it is loaded and checked, with a drawing of the FMU block, the generated modelDescription.xml, a variables table, and checks for common mistakes (missing time variable, inputs/parameters without a setter, continuous integers, leading underscores, ignored class-level metadata). Build FMU and Validate (fmusim when installed). - Simulate: Python preview (do_step, or RK4 with event location for Model Exchange), fmusim or FMPy; sliders for parameters and inputs with live re-run, plots with hover read-out, CSV download. - Inspector: drop any FMI 2.0/3.0 FMU to see its details, platforms, capabilities and variables, plus validation. - Templates: PID, bouncing ball, Van der Pol, Dahlquist, thermostat, polynomial surrogate and signal generator. No new dependencies: a stdlib ThreadingHTTPServer on 127.0.0.1 with a plain-JavaScript front end. API calls need a per-run token and a loopback Host header, paths are confined to the workspace, and model code runs in a fresh worker process per request. Also: docs/studio.md (+ nav and README), MANIFEST entries for the static files and templates, tests for the worker and the HTTP API, and test_builder only expects top-level modules to be embedded in FMUs.
Add installation (PyPI and editable source installs in a virtual environment), building the native library, starting the Studio, optional tools (fmusim, FMPy), a table of the editor checks, simulator details, the template list, command-line options, security notes and a troubleshooting section, with screenshots of each view.
- Version 1.1.0 - Changelog: 1.1.0 section (Studio, pipe CHT example, migration guide); date the 1.0.0 section - Package the Studio's static files and templates (pyproject package-data) - Link the Studio docs from the docs home page - test_example_pipe_cht: load the binary for this platform, since FMUs built from a source tree can hold binaries for several platforms
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.
No description provided.