Skip to content

Commit

Permalink
Update scripts/solve_network.py
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
  • Loading branch information
danielelerede-oet and fneum authored Aug 26, 2024
1 parent 746d176 commit 8093eaa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,10 +1093,7 @@ def solve_network(n, config, solving, **kwargs):

# add to network for extra_functionality
n.config = config
if "snakemake" in kwargs:
n.snakemake = kwargs.pop("snakemake")
else:
n.snakemake = snakemake
n.params = params

if rolling_horizon and snakemake.rule == "solve_operations_network":
kwargs["horizon"] = cf_solving.get("horizon", 365)
Expand Down

0 comments on commit 8093eaa

Please sign in to comment.