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 98e6c5b commit d903337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,8 @@ def extra_functionality(n, snapshots):
if config["sector"]["enhanced_geothermal"]["enable"]:
add_flexible_egs_constraint(n)

if n.snakemake.params.custom_extra_functionality:
source_path = n.snakemake.params.custom_extra_functionality
if params.custom_extra_functionality:
source_path = params.custom_extra_functionality
assert os.path.exists(source_path), f"{source_path} does not exist"
sys.path.append(os.path.dirname(source_path))
module_name = os.path.splitext(os.path.basename(source_path))[0]
Expand Down

0 comments on commit d903337

Please sign in to comment.