Skip to content

Commit

Permalink
use black
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Oct 5, 2023
1 parent 4217772 commit db95efc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,16 @@ def buses_grid_linked(network, voltage_level):
mask = (
network.buses.index.isin(network.lines.bus0)
| (network.buses.index.isin(network.lines.bus1))
| (network.buses.index.isin(network.links.loc[network.links.carrier=="DC", "bus0"]))
| (network.buses.index.isin(network.links.loc[network.links.carrier=="DC", "bus1"]))
| (
network.buses.index.isin(
network.links.loc[network.links.carrier == "DC", "bus0"]
)
)
| (
network.buses.index.isin(
network.links.loc[network.links.carrier == "DC", "bus1"]
)
)
) & (network.buses.v_nom.isin(voltage_level))

df = network.buses[mask]
Expand Down

0 comments on commit db95efc

Please sign in to comment.