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

ENH: Check if different transformer/line parameters with the same ID are used #300

Open
alihamdan opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alihamdan
Copy link
Member

The following should raise an error because two different TransformerParameters objects with the same ID are used in the same network

tp1 = rlf.TransformerParameters(id="TP", ...)
tp2 = rlf.TransformerParameters(id="TP", ...)

tr1 = rlf.Transformer(parameters=tp1, ...)
tr2 = rlf.Transformer(parameters=tp2, ...)

en = rlf.ElectricalNetwork(transformers=[tr1, tr2], ...)  # <- this should raise an error
@alihamdan alihamdan added the enhancement New feature or request label Dec 18, 2024
@alihamdan alihamdan self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant