openapi json export - #30
Draft
jd-lara wants to merge 8 commits into
Draft
Conversation
A BRANCH record whose CKT is prefixed '@' or '*' is a breaker or switch, and _split_breakers_and_branches! routes it to SWITCHES_AS_BRANCHES. The RAW System Switching Device record carries only a reactance below the zero-impedance threshold -- it has no GI/BI/GJ/BJ columns at all -- and a breaker or disconnect has no line-connected reactor or capacitor to describe. A switching-device row carrying line shunts is therefore malformed input. That admittance was previously dropped without a trace. Each non-zero end now becomes a shunt at the bus it was declared on, and the relocation is warned about rather than silent: a branch with real line shunts is a transmission line, not a breaker or switch, so the source data is worth checking. GI/BI/GJ/BJ are pu on the system base -- a BRANCH record declares no MVA base of its own, unlike a transformer winding with its SBASE1-2 -- while a FIXED SHUNT's GL/BL are MW/MVAr at unity voltage and _make_per_unit! divides every shunt gs/bs by the case base. The value is scaled by baseMVA so that division lands back on the declared pu value. The shunt inherits the device's ST because the RAW defines these shunts as "connected to and switched with the line". The salvage runs before _build_switch_breaker_sub_data, which pops I and J.
These are Claude Code working notes, not project documentation, and should never be committed.
jd-lara
force-pushed
the
jd/openapi-json-export
branch
from
July 31, 2026 23:43
9f43901 to
35be103
Compare
The 12 copies of this file across the psy6 workspace had drifted into 6 distinct versions. Its content now lives in the user-scope `sienna-psy6` skill, which loads on invocation instead of being read in full every session.
The lowercase name only loaded because macOS is case-insensitive; on Linux and in CI the file was silently ignored. Pure rename, no content change.
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.
This is a first pass at populating the OpenAPIModels from the PowerFlowParser