Skip to content

Commit

Permalink
Merge pull request #271 from nnhjy/patch-1
Browse files Browse the repository at this point in the history
Update make_summary.py
  • Loading branch information
fneum authored Nov 3, 2022
2 parents 776596a + 80868e5 commit c8d09da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/make_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def calculate_supply(n, label, supply):

for end in [col[3:] for col in c.df.columns if col[:3] == "bus"]:

items = c.df.index[c.df["bus" + end].map(bus_map, na_action=False)]
items = c.df.index[c.df["bus" + end].map(bus_map, na_action=None)]

if len(items) == 0:
continue
Expand Down Expand Up @@ -318,7 +318,7 @@ def calculate_supply_energy(n, label, supply_energy):

for end in [col[3:] for col in c.df.columns if col[:3] == "bus"]:

items = c.df.index[c.df["bus" + str(end)].map(bus_map, na_action=False)]
items = c.df.index[c.df["bus" + str(end)].map(bus_map, na_action=None)]

if len(items) == 0:
continue
Expand Down

0 comments on commit c8d09da

Please sign in to comment.