group storage with duplicate labels
This commit is contained in:
parent
c010f146b9
commit
4cfb06c55f
@ -273,7 +273,7 @@ def plot_h2_map(network, regions):
|
|||||||
h2_storage = n.stores.query("carrier == 'H2'")
|
h2_storage = n.stores.query("carrier == 'H2'")
|
||||||
regions["H2"] = h2_storage.rename(
|
regions["H2"] = h2_storage.rename(
|
||||||
index=h2_storage.bus.map(n.buses.location)
|
index=h2_storage.bus.map(n.buses.location)
|
||||||
).e_nom_opt.div(
|
).e_nom_opt.groupby(level=0).sum().div(
|
||||||
1e6
|
1e6
|
||||||
) # TWh
|
) # TWh
|
||||||
regions["H2"] = regions["H2"].where(regions["H2"] > 0.1)
|
regions["H2"] = regions["H2"].where(regions["H2"] > 0.1)
|
||||||
@ -1068,9 +1068,10 @@ if __name__ == "__main__":
|
|||||||
"plot_network",
|
"plot_network",
|
||||||
simpl="",
|
simpl="",
|
||||||
opts="",
|
opts="",
|
||||||
clusters="37",
|
clusters="22",
|
||||||
ll="v1.0",
|
ll="v1.2",
|
||||||
sector_opts="4380H-T-H-B-I-A-solar+p3-dist1",
|
sector_opts="365H-T-H-B-I-A-solar+p3-linemaxext15",
|
||||||
|
planning_horizons="2040",
|
||||||
)
|
)
|
||||||
|
|
||||||
logging.basicConfig(level=snakemake.config["logging"]["level"])
|
logging.basicConfig(level=snakemake.config["logging"]["level"])
|
||||||
|
Loading…
Reference in New Issue
Block a user