Skip to content

transformer-refactor - #200

Merged
jd-lara merged 20 commits into
psy6from
mb/transformer-refactor
Jul 24, 2026
Merged

jd-lara merged 20 commits into
psy6from
mb/transformer-refactor

Conversation

@m-bossart

Copy link
Copy Markdown
Contributor

m-bossart and others added 19 commits July 8, 2026 16:43
…-area transfer areas

PowerFlowFileParser removed PowerFlowDataNetwork and its parse path (commit fc3eb70)
without a PSB companion change, leaving PowerSystemCaseBuilder unable to precompile
(UndefVarError: PowerFlowDataNetwork not defined). Delete the dormant
src/parsers/powerflowdata_data.jl maker and its include/import, and convert
build_pti_30 to the standard PowerModelsData path used by its sibling build_pti.

Routing v30 files through the full parser surfaces two previously-dormant
referential-integrity crashes in power_models_data.jl (the legacy maker never
exercised these code paths for v30 data): an inter-area-transfer record naming an
undefined area throws inside read_bus! (non-nullable AreaInterchange fields), and a
VSC-line record naming undefined buses throws a raw KeyError in read_vscline!. Both
now warn and skip the offending record instead of crashing, matching the existing
skip-with-warning convention used elsewhere in this file.

The v30 test fixture also carries a three-winding transformer with an implausible
tertiary tap (WINDV3 = 13.8 pu, outside PSY's valid range) that the legacy path never
validated. build_pti_30 now builds with runchecks = false, following the existing
build_psse_modified_14bus_sys precedent for fixtures with known-bad data outside a
builder's format-parsing purpose.

Updated the "PSSE 30 Test System" pinning testset to assert the new tolerant
behavior (both warnings, no AreaInterchange, no VSC line, one ThreeWindingTransformer)
instead of the old PowerFlowData-path warning strings. Dropped the now-unused
PowerFlowData dependency.
…e-system-call

Fix/remove set units base system call
@jd-lara
jd-lara self-requested a review July 24, 2026 01:26
@jd-lara
jd-lara merged commit 14bb0f8 into psy6 Jul 24, 2026
1 of 7 checks passed
@jd-lara
jd-lara deleted the mb/transformer-refactor branch July 24, 2026 01:27
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.

3 participants