bugfix: correct way to identify if entry is in snakemake.input
This commit is contained in:
parent
a2315c289e
commit
a9ac68b50e
@ -1321,7 +1321,7 @@ def add_storage_and_grids(n, costs):
|
|||||||
|
|
||||||
h2_pipes["p_nom"] = 0.0
|
h2_pipes["p_nom"] = 0.0
|
||||||
|
|
||||||
if "custom_h2_pipelines" in snakemake.input:
|
if snakemake.input.get("custom_h2_pipelines"):
|
||||||
fn = snakemake.input.custom_h2_pipelines
|
fn = snakemake.input.custom_h2_pipelines
|
||||||
custom_pipes = pd.read_csv(fn, index_col=0)
|
custom_pipes = pd.read_csv(fn, index_col=0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user