[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7a2f07e135
commit
c66549c577
@ -201,8 +201,11 @@ def adjust_renewable_profiles(n, input_profiles, params, year):
|
||||
for carrier in params["carriers"]:
|
||||
if carrier == "hydro":
|
||||
continue
|
||||
if carrier =='solar-hsat' and not snakemake.config['sector']['solar_utility_singla_axis_tracking']:
|
||||
continue
|
||||
if (
|
||||
carrier == "solar-hsat"
|
||||
and not snakemake.config["sector"]["solar_utility_singla_axis_tracking"]
|
||||
):
|
||||
continue
|
||||
with xr.open_dataset(getattr(input_profiles, "profile_" + carrier)) as ds:
|
||||
if ds.indexes["bus"].empty or "year" not in ds.indexes:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user