-
Notifications
You must be signed in to change notification settings - Fork 538
added failing test for select_subnet with switch results #2251
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
base: develop
Are you sure you want to change the base?
Conversation
|
Looks good @rbolgaryn, can you resolve the current conflicts and then we can accept it. |
fixed the conflicts |
# TODO: drop switches from the full grid that are not relevant
sw_to_drop = list(set(net_cut.res_switch.index) - set(net_cut.switch.index))
net_cut.res_switch.drop(sw_to_drop, inplace=True)
missing = list(set(net_cut.switch.index) - set(net_cut.res_switch.index))
for i in missing:
net_cut.res_switch.loc[i, ["pf_closed", "pf_in_service"]] = True, True
net_cut.res_switch = net_cut.res_switch.loc[net_cut.switch.index]# TODO: drop controllers for transformers in the full grid that are not relevant
for i in net_cut.controller.index.values:
c = net_cut.controller.at[i, "object"]
if isinstance(c, pp.control.TrafoController):
if c.trafotype=="2W" and c.tid not in net_cut.trafo.index.values:
net_cut.controller.drop([i], inplace=True)
elif c.trafotype=="3W" and c.tid not in net_cut.trafo3w.index.values:
net_cut.controller.drop([i], inplace=True) |
|
…elect_subnet # Conflicts: # CHANGELOG.rst
|



No description provided.