fix to backwards compatibility with old profile_{tech}.nc files

This commit is contained in:
Fabian Neumann 2024-02-06 18:38:53 +01:00
parent ba409c2f1e
commit c8e1829880

View File

@ -413,7 +413,7 @@ if __name__ == "__main__":
# select only buses with some capacity and minimal capacity factor
mean_profile = ds["profile"].mean("time")
if "year" in ds.indexes:
mean_profile.max("year")
mean_profile = mean_profile.max("year")
ds = ds.sel(
bus=(