Repository navigation
feat: add PSS/E dynamic output reading - #97
Merged
qian-harvard merged 3 commits intoOct 6, 2026
Merged
Conversation
dyntools ships in the PSSPY directory, which only _ensure_psse puts on sys.path. Both new tools imported it directly, so in a fresh session, which is the usual case for reading an existing .out file, they failed with "No module named 'dyntools'". They now start the engine first, through a _dyntools() helper. tests/test_psse_server.py drives both tools with a fake dyntools that, like the real one, can only be imported after the engine starts. It covers channel selection, the input checks, and path containment. The four cases that read a file fail on the code as first submitted. Also: register both tools' outfile in the sandbox test's GUARDED table, list them in the PSS/E README, document outvrsn=1 for .outx, and import psse_mcp as PSSE.psse_mcp in the live test instead of editing sys.path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Thanks. Reading dynamic output back through MCP was a real gap, and I'm merging this. I pushed
A possible follow-up: with no |
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
.outfiles usingdyntools.CHNF(outvrsn=0)Validation
Validated with PSS/E Xplore 36.7 / Python 3.14:
3 passedforPSSE/tests/test_dynamic_output.py