Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] reference to conductors that is not supported #479

Open
hei06j opened this issue Nov 29, 2024 · 0 comments
Open

[BUG] reference to conductors that is not supported #479

hei06j opened this issue Nov 29, 2024 · 0 comments

Comments

@hei06j
Copy link
Contributor

hei06j commented Nov 29, 2024

In functions relating to sequence voltage constraints, the command @assert(ref(pm, nw, :conductors)==3) throws error since :conductors is not supported. This bug is not seen because these functions are not used anywhere in the code and there is no unit tests for them.

A fix could be to replace it with @assert(length(ref(pm, nw, :conductor_ids))==3). However, since this assert restricts using this function to only three wire cases, and throws error is used for explicit neutral cases, perhaps a better fix would be @assert(length(ref(pm, nw, :conductor_ids))>=3).

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

No branches or pull requests

1 participant