[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d6137f8e93
commit
817995c8a2
@ -4,7 +4,7 @@
|
||||
|
||||
import os, sys, glob
|
||||
|
||||
helper_source_path = [match for match in glob.glob('**/_helpers.py', recursive=True)]
|
||||
helper_source_path = [match for match in glob.glob("**/_helpers.py", recursive=True)]
|
||||
|
||||
for path in helper_source_path:
|
||||
path = os.path.dirname(os.path.abspath(path))
|
||||
|
@ -3013,8 +3013,9 @@ def add_industry(n, costs):
|
||||
|
||||
if options["co2_spatial"] or options["co2network"]:
|
||||
p_set = (
|
||||
-industrial_demand.loc[nodes, "process emission"]
|
||||
.rename(index=lambda x: x + " process emissions")
|
||||
-industrial_demand.loc[nodes, "process emission"].rename(
|
||||
index=lambda x: x + " process emissions"
|
||||
)
|
||||
/ nhours
|
||||
)
|
||||
else:
|
||||
|
@ -856,7 +856,7 @@ def solve_network(n, config, solving, opts="", **kwargs):
|
||||
kwargs["assign_all_duals"] = cf_solving.get("assign_all_duals", False)
|
||||
|
||||
if kwargs["solver_name"] == "gurobi":
|
||||
logging.getLogger('gurobipy').setLevel(logging.CRITICAL)
|
||||
logging.getLogger("gurobipy").setLevel(logging.CRITICAL)
|
||||
|
||||
rolling_horizon = cf_solving.pop("rolling_horizon", False)
|
||||
skip_iterations = cf_solving.pop("skip_iterations", False)
|
||||
|
Loading…
Reference in New Issue
Block a user