Allow the retrieval of cost data from forks of technology-data
This commit is contained in:
parent
f6f18e1868
commit
ce549cd949
@ -25,9 +25,10 @@ if __name__ == "__main__":
|
|||||||
set_scenario_config(snakemake)
|
set_scenario_config(snakemake)
|
||||||
|
|
||||||
version = snakemake.params.version
|
version = snakemake.params.version
|
||||||
baseurl = (
|
if "/" in version:
|
||||||
f"https://raw.githubusercontent.com/PyPSA/technology-data/{version}/outputs/"
|
baseurl = f"https://raw.githubusercontent.com/{version}/outputs"
|
||||||
)
|
else:
|
||||||
|
baseurl = f"https://raw.githubusercontent.com/PyPSA/technology-data/{version}/outputs/"
|
||||||
filepath = Path(snakemake.output[0])
|
filepath = Path(snakemake.output[0])
|
||||||
url = baseurl + filepath.name
|
url = baseurl + filepath.name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user