adjust make summary functions to work without industry sector

This commit is contained in:
lisazeyen 2021-02-23 15:42:43 +01:00
parent 8cabeb5871
commit 088c5ab805

View File

@ -285,7 +285,7 @@ def calculate_supply(n,label,supply):
for c in n.iterate_components(n.one_port_components):
items = c.df.index[c.df.bus.map(bus_map)]
items = c.df.index[c.df.bus.map(bus_map).fillna(False)]
if len(items) == 0:
continue
@ -330,7 +330,7 @@ def calculate_supply_energy(n,label,supply_energy):
for c in n.iterate_components(n.one_port_components):
items = c.df.index[c.df.bus.map(bus_map)]
items = c.df.index[c.df.bus.map(bus_map).fillna(False)]
if len(items) == 0:
continue
@ -629,4 +629,3 @@ if __name__ == "__main__":
cumulative_cost.to_csv(snakemake.config['summary_dir'] + '/' + snakemake.config['run'] + '/csvs/cumulative_cost.csv')