Skip to content

Fix/opendss compile integrity - #153

Merged
qian-harvard merged 5 commits into
Power-Agent:mainfrom
BurhanAbdullah:fix/opendss-compile-integrity
Nov 21, 2026
Merged

qian-harvard merged 5 commits into
Power-Agent:mainfrom
BurhanAbdullah:fix/opendss-compile-integrity

Conversation

@BurhanAbdullah

Copy link
Copy Markdown
Contributor

Summary

Prevent OpenDSS from reporting a successful model load when a Compile command leaves behind a partial or empty circuit, for example, when a referenced Redirect file cannot be found.

Changes

  • Verify that the compiled engine reports at least one bus and one circuit element before marking the circuit as loaded.
  • Include engine-level counts and toolkit readiness in successful compile responses.
  • Revalidate cached circuits before reporting that compilation can be skipped.
  • Reset session state and attempt ClearAll when circuit validation fails.
  • Add regression tests for valid, empty, partial, and cached-circuit scenarios.
  • Document the stronger compile-success contract.

Validation

All five staging CI jobs passed:

  • Python 3.10 tests
  • Python 3.12 tests
  • Python 3.13 tests
  • Python 3.14 tests
  • PowerFactory catalog wheel smoke test

No live licensed OpenDSS runtime validation is claimed.

Related issue

Addresses the compile-integrity issue tracked in #129.

@qian-harvard
qian-harvard merged commit ae642b4 into Power-Agent:main Nov 21, 2026
5 checks passed
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