Skip to content

v0.7.2#48

Merged
wzh1895 merged 8 commits into
mainfrom
dev
Feb 8, 2026
Merged

v0.7.2#48
wzh1895 merged 8 commits into
mainfrom
dev

Conversation

@wzh1895

@wzh1895 wzh1895 commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Note

Medium Risk
Touches core simulation state/initialization logic to support continuing runs after parameter changes, which could subtly alter model behavior; however changes are covered by a large new regression test suite and are mostly additive/cleanup elsewhere.

Overview
v0.7.2 updates core simulation for interactive/stepwise runs and streamlines the package. The simulation engine now better supports calling simulate() multiple times (including after replace_element_equation) by preserving stock values when re-initializing from a changed state, allowing continuation from simulated, and marking modified stocks as uninitialized.

Adds a new CLI subcommand asdm run <model.stmx> to run a model headlessly and export results to CSV, and introduces an extensive new test suite (test_varying_parameters.py) validating continuity, state transitions, and parameter-change effects for both programmatic and .stmx-loaded models.

Cleans up packaging by bumping pyproject.toml to 0.7.2, removing legacy inference/optimization modules under src/asdm/Inference/ and deleting utilities.py, and refreshes README.md/Documentation.md with expanded, reorganized user-facing docs (simulation specs, arrays, conveyors, data import, function reference, XMILE export).

Written by Cursor Bugbot for commit 9c9c3b6. This will update automatically on new commits. Configure here.

@wzh1895 wzh1895 merged commit 79ef922 into main Feb 8, 2026
32 checks passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread src/asdm/asdm.py
time: simulation time
dt: time step
pause: if True, the simulation will pause after the specified time (stop after step 1);
pause: if True, the simulation will pause after the specified time;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documented pause parameter is never used

Medium Severity

The simulate method's pause parameter is documented to pause the simulation after the specified time to allow parameter changes, but the parameter is never actually used in the function body. The docstring and Documentation.md describe specific behavior ("if True, the simulation pauses after the specified time...") that is not implemented. Users relying on this documented feature will find it has no effect.

Additional Locations (1)

Fix in Cursor Fix in Web

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.

1 participant