Merge branch 'master' of https://github.com/PyPSA/pypsa-eur
This commit is contained in:
commit
7e84ed4d81
@ -5,7 +5,7 @@ channels:
|
|||||||
dependencies:
|
dependencies:
|
||||||
#- python
|
#- python
|
||||||
- pip
|
- pip
|
||||||
# - pypsa>=0.16 # until PyPSA/a3c0991 released
|
- pypsa>=0.17
|
||||||
- atlite
|
- atlite
|
||||||
|
|
||||||
# Dependencies of the workflow itself
|
# Dependencies of the workflow itself
|
||||||
@ -47,7 +47,6 @@ dependencies:
|
|||||||
- vresutils==0.3.1
|
- vresutils==0.3.1
|
||||||
- git+https://github.com/PyPSA/glaes.git#egg=glaes
|
- git+https://github.com/PyPSA/glaes.git#egg=glaes
|
||||||
- git+https://github.com/PyPSA/geokit.git#egg=geokit
|
- git+https://github.com/PyPSA/geokit.git#egg=geokit
|
||||||
- git+https://github.com/PyPSA/pypsa.git#egg=pypsa # until PyPSA/a3c0991 released
|
|
||||||
- cdsapi
|
- cdsapi
|
||||||
- sphinx
|
- sphinx
|
||||||
- sphinx_rtd_theme
|
- sphinx_rtd_theme
|
||||||
|
@ -8,7 +8,7 @@ dependencies:
|
|||||||
- python
|
- python
|
||||||
- pip
|
- pip
|
||||||
|
|
||||||
# - pypsa>=0.16 # until PyPSA/a3c0991 released
|
- pypsa>=0.17
|
||||||
- atlite
|
- atlite
|
||||||
|
|
||||||
# Dependencies of the workflow itself
|
# Dependencies of the workflow itself
|
||||||
@ -53,5 +53,4 @@ dependencies:
|
|||||||
- vresutils==0.3.1
|
- vresutils==0.3.1
|
||||||
- git+https://github.com/PyPSA/glaes.git#egg=glaes
|
- git+https://github.com/PyPSA/glaes.git#egg=glaes
|
||||||
- git+https://github.com/PyPSA/geokit.git#egg=geokit
|
- git+https://github.com/PyPSA/geokit.git#egg=geokit
|
||||||
- git+https://github.com/PyPSA/pypsa.git#egg=pypsa # until PyPSA/a3c0991 released
|
|
||||||
- cdsapi
|
- cdsapi
|
||||||
|
@ -262,6 +262,7 @@ def clustering_for_n_clusters(n, n_clusters, aggregate_carriers=None,
|
|||||||
generator_strategies={'p_nom_max': p_nom_max_strategy},
|
generator_strategies={'p_nom_max': p_nom_max_strategy},
|
||||||
scale_link_capital_costs=False)
|
scale_link_capital_costs=False)
|
||||||
|
|
||||||
|
if not n.links.empty:
|
||||||
nc = clustering.network
|
nc = clustering.network
|
||||||
nc.links['underwater_fraction'] = (n.links.eval('underwater_fraction * length')
|
nc.links['underwater_fraction'] = (n.links.eval('underwater_fraction * length')
|
||||||
.div(nc.links.length).dropna())
|
.div(nc.links.length).dropna())
|
||||||
@ -269,6 +270,7 @@ def clustering_for_n_clusters(n, n_clusters, aggregate_carriers=None,
|
|||||||
.add((nc.links.length - n.links.length)
|
.add((nc.links.length - n.links.length)
|
||||||
.clip(lower=0).mul(extended_link_costs),
|
.clip(lower=0).mul(extended_link_costs),
|
||||||
fill_value=0))
|
fill_value=0))
|
||||||
|
|
||||||
return clustering
|
return clustering
|
||||||
|
|
||||||
def save_to_geojson(s, fn):
|
def save_to_geojson(s, fn):
|
||||||
|
Loading…
Reference in New Issue
Block a user