This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
feat: load simulation data with --data and replay modpoll snapshots (SIM-05) - #31
Merged
Merged
Conversation
…(SIM-05) - --scenario becomes --data and deployment devices use data: instead of scenario:. Simulation data is defined and validated by modpoll-wot 0.4.0a1 and carries no code; behavior scripts move to --script or a device's script:, and their values to scriptParameters:. - A modpoll --export snapshot is accepted as simulation data. Unread points keep their defaults and are logged. - Remove --initial-file; a data document's initial replaces it. - Scaled values use modpoll-wot's scaled_raw, so exported floats such as 230.10000000000002 with multiplier 0.1 are served again. - The catalog interop tool and examples read catalog schema 7 paths at fd90607 and no longer read the removed vectors file. The released-runtime interop step is dropped until a release accepts --data. - A new CI job reads a simulated device with released modpoll, exports a snapshot and checks that modsim replays it unchanged, scaled points included. - Version 2.0.0a7. uv.lock is updated once modpoll-wot 0.4.0a1 is published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Modsim 2.0.0a7: simulation data replaces scenarios, and a modpoll
--exportsnapshot can be replayed locally. Pins modpoll-wot0.4.0a1, which defines the format.Breaking changes
--scenariobecomes--data(local path or HTTPS URL); deployment devices usedata:instead ofscenario:.--initial-fileis removed; put values in a data document'sinitial.--scriptor a device'sscript:(resolved relative to the deployment), and script values toscriptParameters:.Changes
modpoll_wot.load_simulation_data; unread snapshot points keep their defaults and are logged.modpoll_wot.scaled_raw, so values modpoll exports such as230.10000000000002(raw 2301, multiplier 0.1) are served again.model.tm.json,model.sim.jsonatfd90607) and no longer read the removed vectors file. The released-runtime interop step is dropped until a release accepts--data.snapshot-replayCI job: released modpoll reads a simulated device, exports a snapshot, modsim replays it and modpoll reads the same values, scaled points included.--dataand replay, and say snapshots of real devices stay local.Checks
make check(lock, pre-commit, mypy, deptry), 113 tests,tests/test_snapshot_replay.pywith modpoll 2.0.0a5,tools/generate-td.py --checkandmkdocs build -spass locally with modpoll-wot 0.4.0a1 from PyPI.🤖 Generated with Claude Code