Skip to content

bug fixes - #291

Merged
jd-lara merged 2 commits into
mainfrom
mb/more-pom-bugs
Sep 14, 2026
Merged

jd-lara merged 2 commits into
mainfrom
mb/more-pom-bugs

Conversation

@m-bossart

Copy link
Copy Markdown
Contributor

Bug 1: outage discovery ignores availability. When POM auto-discovers which components each Outage monitors, it checks that the component resolves against the system and that its type is modeled, but never
that it is available. An unavailable branch is excluded from the Ybus and therefore from the branch catalog, so the build dies.

Bug 2: mixed-type parallel groups bind the wrong method. POM's interface and inter-area paths dispatch on the reduction entry at each arc, with methods for a plain branch, BranchesParallel, and
BranchesSeries — but none for MixedBranchesParallel, the group PNM builds when parallel branches have different concrete types. Because every PNM reduction wrapper subtypes PSY.ACTransmission, the group
doesn't fail on dispatch; it silently binds the single-branch method, which asks it for a name field it does not have and throws a FieldError several frames deep.

@jd-lara

jd-lara commented Sep 10, 2026

Copy link
Copy Markdown
Member

@m-bossart can you rebase this branch on main?

@luke-kiernan luke-kiernan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward

edit: CI failure is Julia 1.13-related.

@jd-lara jd-lara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we are aware of the mess introduced with Julia 1.13 that will have CI/CD broken for a minute

function _add_to_branch_map!(
branch_typed_dict::Dict{DataType, Vector{String}},
reduction_entry::Union{PNM.BranchesParallel, PNM.BranchesSeries},
reduction_entry::Union{PNM.AbstractBranchesParallel, PNM.BranchesSeries},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have an upper level abstract there? Union{Abstract, concrete} aren't great. Ok if not but if possible

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jd-lara jd-lara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can remove some of the unions with abstracts

@jd-lara
jd-lara merged commit 7b206f7 into main Sep 14, 2026
1 of 6 checks passed
rodrigomha added a commit that referenced this pull request Sep 14, 2026
Brings #291: m-bossart's branch-constructor and expression fixes and the PNM abstract type.
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