Merge pull request #970 from koen-vg/custom-costs-repo
Allow the selection of custom fork of technology-data
This commit is contained in:
commit
3940d2e0ad
@ -1,6 +1,6 @@
|
|||||||
,Unit,Values,Description
|
,Unit,Values,Description
|
||||||
year,--,YYYY; e.g. '2030',Year for which to retrieve cost assumptions of ``resources/costs.csv``.
|
year,--,YYYY; e.g. '2030',Year for which to retrieve cost assumptions of ``resources/costs.csv``.
|
||||||
version,--,vX.X.X; e.g. 'v0.5.0',Version of ``technology-data`` repository to use.
|
version,--,vX.X.X or <user>/<repo>/vX.X.X; e.g. 'v0.5.0',Version of ``technology-data`` repository to use. If this string is of the form <user>/<repo>/<version> then costs are instead retrieved from ``github.com/<user>/<repo>`` at the <version> tag.
|
||||||
rooftop_share,--,float,Share of rooftop PV when calculating capital cost of solar (joint rooftop and utility-scale PV).
|
rooftop_share,--,float,Share of rooftop PV when calculating capital cost of solar (joint rooftop and utility-scale PV).
|
||||||
social_discountrate,p.u.,float,Social discount rate to compare costs in different investment periods. 0.02 corresponds to a social discount rate of 2%.
|
social_discountrate,p.u.,float,Social discount rate to compare costs in different investment periods. 0.02 corresponds to a social discount rate of 2%.
|
||||||
fill_values,--,float,Default values if not specified for a technology in ``resources/costs.csv``.
|
fill_values,--,float,Default values if not specified for a technology in ``resources/costs.csv``.
|
||||||
|
|
@ -82,6 +82,8 @@ Upcoming Release
|
|||||||
|
|
||||||
* Upgrade default techno-economic assumptions to ``technology-data`` v0.8.1.
|
* Upgrade default techno-economic assumptions to ``technology-data`` v0.8.1.
|
||||||
|
|
||||||
|
* Add possibility to download cost data from custom fork of ``technology-data``.
|
||||||
|
|
||||||
* Linearly interpolate missing investment periods in year-dependent
|
* Linearly interpolate missing investment periods in year-dependent
|
||||||
configuration options.
|
configuration options.
|
||||||
|
|
||||||
|
@ -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