Skip to content

fix: keep a zero-impedance TRANSFORMER classified as a transformer - #53

Merged
jd-lara merged 1 commit into
psy6from
lk/zero-impedance-transformer
Sep 5, 2026
Merged

jd-lara merged 1 commit into
psy6from
lk/zero-impedance-transformer

Conversation

@luke-kiernan

Copy link
Copy Markdown
Contributor

Ports PowerSystems.jl 00003f06d, which landed after the parsing code moved here.

_branch_type_psse tested for zero br_r/br_x before checking d["transformer"], so a TRANSFORMER record with R1-2 = X1-2 = 0 became a DiscreteControlledACBranch — silently, since the transformer=true but detected as a Line guard only catches :line.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HmGuSdKu4g7a3uqgPXZ4NC

Port of PowerSystems.jl 00003f06d. _branch_type_psse checked for zero r/x
before checking the transformer flag, so a TRANSFORMER record with
R1-2 = X1-2 = 0 was routed to make_switch_from_zero_impedance_branch! and
became a DiscreteControlledACBranch. It also slipped past the
"transformer=true but detected as a Line" guard, which only catches :line.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmGuSdKu4g7a3uqgPXZ4NC
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jd-lara
jd-lara merged commit 17915c1 into psy6 Sep 5, 2026
6 of 8 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