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

oos-elements in create_generic_coordinates #630

Open
dlohmeier opened this issue Jan 28, 2020 · 3 comments
Open

oos-elements in create_generic_coordinates #630

dlohmeier opened this issue Jan 28, 2020 · 3 comments

Comments

@dlohmeier
Copy link
Collaborator

I just realized that when setting parts of a network out of service (line and buses), the function create_generic_coordinates() raises an exception. This is the code that raises the issue:

gnet = copy.deepcopy(net)
gnet.bus = gnet.bus[gnet.bus.in_service == True]
graph, meshed, roots = build_igraph_from_pp(gnet, respect_switches)

If there are oos-lines in the net connecting oos-buses, they will not be neglected in the graph creation, but the respective nodes were not added to the graph before (as the bueses were already removed). So, how should this be treated? There is the option to not exclude oos-buses or to also exclude all oos-branches (i.e. also trafos). This could also just be added as a parameter to the function...

@jhmenke jhmenke added the bug label Apr 15, 2020
@jhmenke
Copy link
Contributor

jhmenke commented Apr 15, 2020

That's definitely not intended behaviour.
I think there should be a general switch that defines whether to include or exclude out of service elements.

@rbolgaryn
Copy link
Member

Hi @dlohmeier ,

the function create_nxgraph has a parameter "include_oos_elements". Does the igraph function have a similar parameter?

@dlohmeier
Copy link
Collaborator Author

No, it doesn't, that should be exactly the switch that Jan-Hendrik was pointing at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants