fix to backwards compatibility with old profile_{tech}.nc files
This commit is contained in:
parent
ba409c2f1e
commit
c8e1829880
@ -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=(
|
||||
|
Loading…
Reference in New Issue
Block a user