Fabian
f45803ff10
add_electricity: fix missing backwards compat and warnings
2022-06-09 23:40:32 +02:00
Fabian
76cd0751b4
Merge branch 'eu-energy-security' of github.com:PyPSA/pypsa-eur into eu-energy-security
2022-06-09 20:36:35 +02:00
Fabian
0ec3a8638b
add_electricity & config:
...
- refactor attachment of conventional carriers
- refactor scaling of renewable carriers
2022-06-09 20:31:50 +02:00
zoltanmaric
1a7b439f2d
Remove usages of retrieve_snakemake_keys
2022-06-08 17:32:33 +02:00
martacki
cd92d8092b
plot_summary: remove deprecated retrieve_snakemake_keys function
2022-06-08 15:49:06 +02:00
Fabian Neumann
a2f39abee2
Merge branch 'master' into voronoi
2022-06-07 15:23:30 +02:00
Fabian
8b855f0478
add_elecitricity: scale only missing renewable capacities from OPSD
2022-06-07 15:17:49 +02:00
Fabian Hofmann
bdd094d796
Update scripts/build_bus_regions.py
2022-06-07 15:01:40 +02:00
Fabian Hofmann
97fbf77ff8
Update scripts/build_bus_regions.py
2022-06-07 15:01:18 +02:00
Fabian Hofmann
aa867cb704
Update scripts/build_bus_regions.py
...
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2022-06-07 15:00:57 +02:00
Fabian Neumann
d5db3b8d80
Update scripts/build_bus_regions.py
...
Co-authored-by: Fabian Hofmann <fab.hof@gmx.de>
2022-06-07 10:57:01 +02:00
Fabian Hofmann
619b471f72
Merge branch 'master' into eu-energy-security
2022-06-07 10:05:11 +02:00
Max Parzen
b6032fb891
fix crs bug
2022-05-28 14:48:32 +01:00
martacki
2e4c30e28e
abbreviate
2022-04-29 15:18:22 +02:00
martacki
8a49697a51
bugfixes for manual load adjustments
2022-04-29 15:09:10 +02:00
martacki
ac7c94337e
respect stores for supply.csv
2022-04-29 13:51:54 +02:00
martacki
d12405d848
respect stores for energy_supply.csv
2022-04-29 13:48:58 +02:00
martacki
dcac3ea6e1
respect stores in make_summary script
2022-04-28 12:59:25 +02:00
Fabian Neumann
49f1c0f629
Merge pull request #348 from PyPSA/annuity
...
add_electricity: remove vresutils.costdata.annuity dependency
2022-04-15 18:36:37 +02:00
Fabian Neumann
a3d6e296e8
Merge branch 'master' into eu-energy-security
2022-04-08 19:56:26 +02:00
Fabian Neumann
4712bfc893
fix nuclear EAF processing code
2022-04-08 19:55:40 +02:00
Fabian Neumann
8af21f3355
Merge remote-tracking branch 'origin/eu-energy-security' into results-dir
2022-04-08 15:46:37 +02:00
euronion
c412a61013
Add country-specific EAF restriction for NPPs. ( #361 )
...
* Add country-specific EAF restriction for NPPs.
Based on historic figures from IAEA.
* Update release_notes.rst
2022-04-08 15:41:23 +02:00
Fabian Neumann
6aefcee030
Merge branch 'eu-energy-security' into results-dir
2022-04-08 15:28:57 +02:00
Fabian
40425a7767
build powerplants: use map_country bus function for bus attachement
2022-04-08 15:25:05 +02:00
Fabian Neumann
50ca0d0ddc
Merge branch 'eu-energy-security' into results-dir
2022-04-08 14:51:10 +02:00
Fabian
65790cd065
build_powerplants: remove non-assigned ppls
2022-04-08 14:34:52 +02:00
Fabian
d53487f822
build_powerplants: fix duplicated names per bus
2022-04-08 14:23:33 +02:00
Fabian Neumann
40c882f0e9
solve: allow to parse load shedding cost in config
2022-04-08 13:19:25 +02:00
Fabian Neumann
4a18d59789
Merge branch 'eu-energy-security' into results-dir
2022-04-08 12:34:11 +02:00
Fabian
e37a3f57ab
adjust biomass capacities
2022-04-08 12:23:24 +02:00
Fabian Neumann
2403650be2
prepare: allow varying emission prices in opts wc: e.g. Ep80.5
2022-04-08 10:27:55 +02:00
Fabian Neumann
02c06017d3
prepare: add gas consumption limit through wildcard: CH4L
2022-04-08 10:27:23 +02:00
Fabian Neumann
bd75953674
add logging to co2limit2
2022-04-08 10:26:38 +02:00
Fabian Neumann
f9ede37a02
allow varying marginal cost of carrier in opts wc: CCGT+m2.0
2022-04-08 10:26:16 +02:00
Fabian Neumann
630fb9783f
fix to operational reserve margin to work without any extendable gens
2022-04-07 17:20:56 +02:00
Fabian Neumann
84e146834c
Apply suggestion from code review to add switch
2022-04-07 15:22:10 +02:00
Fabian Neumann
3678e5c523
Add operational reserve margin constraint analogous to GenX
...
Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
2022-04-07 14:39:34 +02:00
Fabian Neumann
4862dcf865
Merge pull request #357 from PyPSA/hvdc-links
...
Hvdc links
2022-04-05 17:13:15 +02:00
Fabian Neumann
bfcc20aa13
Revert "update TYNDP links which are already built"
2022-04-05 17:10:12 +02:00
Fabian Neumann
51dffbefa3
add gas usage limit constraint
2022-04-05 16:59:51 +02:00
Fabian Neumann
9812e64e82
resolve cherry merge conflict 2
2022-04-05 16:34:02 +02:00
Fabian Neumann
7a52b6bc45
resolve cherry merge conflict 1
2022-04-05 16:22:31 +02:00
Fabian Neumann
aa6e98a563
label built TYNDP links as not under_construction
2022-04-05 16:11:02 +02:00
Fabian Neumann
eca4a017db
implement TYNDP link overriding for link_id not oid
2022-04-05 16:07:30 +02:00
Fabian
1fd6a685ab
powerplants: filter out powerplants with shut down date < 2021
2022-04-05 15:12:01 +02:00
Fabian
f878faac73
add_electricity: allow estimate_renewable_capacities to be commented out
2022-04-05 08:02:44 +02:00
Fabian Neumann
cb9730118b
Merge branch 'eu-energy-security' into renewable-caps
2022-04-04 19:04:44 +02:00
Fabian Neumann
ade22bf4f0
add existing wind and solar capacities based on IRENASTATS
2022-04-04 19:03:09 +02:00
Fabian
7bc9b8012c
powerplants: update to ppm >= v0.5.1
2022-04-04 18:07:48 +02:00
Fabian Neumann
a7e407944c
Merge branch 'master' into issue-301
2022-03-29 09:24:40 +02:00
Fabian Neumann
621520a7b2
Merge branch 'master' into rm-raster-natura
2022-03-29 09:18:43 +02:00
Fabian Neumann
a4132919a0
Merge branch 'master' into voronoi
2022-03-29 09:08:35 +02:00
Fabian Neumann
a05881479c
build_bus_regions: move voronoi partition from vresutils to script
2022-03-28 15:17:55 +02:00
Seth
c37171b01d
feedback code review (opts argument and unpacking)
2022-03-28 13:42:55 +02:00
Seth
e45c7a65ff
Apply suggestions from Martha's code review
...
Co-authored-by: Martha Frysztacki <martha.frysztacki@kit.edu>
2022-03-28 12:10:51 +02:00
Fabian Neumann
7fee2944d8
Merge branch 'master' into rm-raster-natura
2022-03-28 12:07:33 +02:00
Seth
3c5212826e
Merge branch 'PyPSA:master' into fix-plotnetworkrule
2022-03-28 11:54:47 +02:00
Fabian Neumann
03e6764a9d
Merge branch 'master' into issue-301
2022-03-25 13:46:46 +01:00
Fabian Neumann
c54ddab4a3
remove unused simple_hvdc_costs
2022-03-24 14:47:00 +01:00
Fabian Neumann
1a82b87587
skip iterations if no lines are expandable
2022-03-24 14:30:28 +01:00
Fabian Neumann
7f6a00cfce
Merge branch 'master' into rm-raster-natura
2022-03-24 14:19:14 +01:00
martacki
7f29c31abe
.copy() shortcut
2022-03-24 13:17:01 +01:00
martacki
8cb4c17930
unify vre treatment for hac clustering for simplify_network and cluster_network
2022-03-22 16:53:05 +01:00
Fabian Neumann
7ba1f26eb8
must read NATURA shape before add_geometry
2022-03-20 20:56:38 +01:00
Fabian Neumann
5a7c0d7967
remove build/retrieve natura raster, directly use shapefile
2022-03-20 10:03:17 +01:00
Fabian Neumann
ca94709ed3
use snakemake.threads in build_renewable_profiles
2022-03-20 09:50:38 +01:00
Martha Frysztacki
69c0341145
Merge branch 'master' into introduce_hac_clustering
2022-03-17 17:40:46 +01:00
martacki
4c1c5e3a4e
suggestions by coroa and fneum
2022-03-17 17:38:30 +01:00
Fabian
1f788e0d5b
cluster_network: replace np.sum/np.min by pandas.Series.sum/min
2022-03-16 16:16:15 +01:00
Seth
0384b4ff83
fix the plot_network snakemake rule
2022-03-10 13:55:53 +01:00
Martha Frysztacki
3e07fdfd54
Merge branch 'master' into introduce_hac_clustering
2022-03-07 11:44:29 +01:00
martacki
3fa8f91e73
make_summary followup on snakemake dependencies removal
2022-03-04 16:29:47 +01:00
Fabian
d16f24fc07
follow up
2022-03-03 23:08:29 +01:00
Fabian
8700f63cdb
solve_network: fix load shedding attributes
2022-03-03 18:13:54 +01:00
martacki
b63271f12f
release_notes, old format of base_network with updated docstrings
2022-03-03 17:16:23 +01:00
Martha Frysztacki
49cd51f463
Merge branch 'master' into update-entsoe-gridextract
2022-03-03 16:38:06 +01:00
Fabian
752ff28538
cluster_network.py: allow cluster wildcard to be 'all'
2022-03-02 14:43:04 +01:00
Fabian Neumann
8dafb7bc83
fix custom clustering by checking explicitly for series ( #318 )
2022-02-27 08:07:11 +01:00
Martha Frysztacki
6b6191734c
Merge branch 'master' into update-entsoe-gridextract
2022-02-16 21:41:28 +01:00
Koen van Greevenbroek
f7ee47238a
Fix random state for kmean clustering
...
When the kmeans algorithm is used to cluster networks, this is not
deterministic by default. The result is that repeated runs of the
`simplify_network` and `cluster_network` rules can and usually do
produce different results that vary somewhat randomly. This makes
results less reproducible when given only a pypsa-eur configuration
file.
The fix is to supply a fixed random state to the k-means algorithm.
2022-02-10 15:57:16 +01:00
martacki
82a0338e9f
treatment of outliers and small feature-bugfix
2022-02-04 20:27:18 +01:00
martacki
b5dbf4eb32
overwrite country of isolated buses
2022-02-04 17:19:23 +01:00
martacki
256ac48b47
resolve merging master bugs
2022-02-04 16:45:00 +01:00
Martha Frysztacki
25b3245923
Merge branch 'master' into introduce_hac_clustering
2022-02-04 14:35:14 +01:00
Fabian Neumann
835bfc0f6a
bugfix: access right config variables in build renewable profiles
2022-02-01 08:51:47 +01:00
Martha Frysztacki
ff29fda618
Merge branch 'master' into update-entsoe-gridextract
2022-01-31 17:08:56 +01:00
martacki
296fb021cf
join skagerrak link
2022-01-31 16:09:42 +01:00
Fabian Neumann
09f1135b51
address pandas 1.4 deprectations
2022-01-29 16:17:46 +01:00
Fabian Neumann
c8c1c3c46e
revert ea96d499e7
2022-01-29 15:02:49 +01:00
Martha Frysztacki
9ae8baf71d
Merge branch 'master' into update-entsoe-gridextract
2022-01-28 15:12:36 +01:00
martacki
6cdf3a2879
use snakemake keywords directly without extracting them beforehand
2022-01-24 19:48:26 +01:00
Martha Frysztacki
c45691d305
Merge branch 'master' into snakemake_dependencies_in_functions
2022-01-24 19:15:06 +01:00
martacki
c4be81eb5e
simplify_network: remove snakemake dependencies
2022-01-24 19:13:48 +01:00
martacki
61a4108e60
update parameter_corrections for updated entsoe gridextract
2022-01-21 17:37:18 +01:00
Qui-Rin
9f0515105b
build_load_data: Removed underscore in pattern
...
When using the transparency option the pattern used as a filter is created with a double underscore -> removed underscore in '_transparency'
2022-01-14 19:02:44 +01:00
martacki
dc83fd8e09
fix small bugs
2022-01-14 15:13:44 +01:00
martacki
0da77a7600
remove snakemake dependencies in plot_summary
2022-01-14 13:44:33 +01:00
martacki
f28a088ea3
arguments in function calls instead of kwarg-style
2022-01-14 11:30:15 +01:00
martacki
8cb5bd27d5
make_summary: remove snakemake dependencies
2022-01-14 11:29:01 +01:00
Martha Frysztacki
7067d924cc
Merge branch 'master' into snakemake_dependencies_in_functions
2022-01-14 11:05:54 +01:00
martacki
deac9f32e7
move snakemake keys (input, output, config, ...) to own variables
2022-01-14 11:05:15 +01:00
Fabian Neumann
72e277a007
update environment and address deprecations ( #291 )
...
* update environment and address deprecations
* check pandas<1.3
* limit snakemake due to ascii encoding error, address review comments
* remove version restriction on snakemake
2022-01-14 07:43:21 +00:00
martacki
9b7bb27da1
snakemake dependencies in base_network
2022-01-13 18:54:27 +01:00
martacki
505f093141
fix ordering of kwargs in add_co2limit
2022-01-13 18:00:22 +01:00
Fabian Hofmann
94364cbeeb
Update scripts/cluster_network.py
...
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2022-01-11 10:31:49 +01:00
Fabian
281700751a
Merge branch 'snakemake_dependencies_in_functions' of github.com:PyPSA/pypsa-eur into snakemake_dependencies_in_functions
2022-01-11 10:28:11 +01:00
Fabian
ed7fd27adc
build_shapes: use country_list as argument
2022-01-11 10:24:45 +01:00
Fabian
c7a443c969
build_shapes: revise changes
2022-01-11 10:23:22 +01:00
Martha Frysztacki
418ce4be28
Merge branch 'master' into snakemake_dependencies_in_functions
2022-01-11 10:03:32 +01:00
Fabian
d1334c1670
Merge branch 'snakemake_dependencies_in_functions' of github.com:PyPSA/pypsa-eur into snakemake_dependencies_in_functions
2022-01-11 10:00:55 +01:00
Fabian
39a6753ece
build_powerplants: revise changes
2022-01-11 09:59:58 +01:00
Fabian
01e93545f6
add_extra_components: revise changes
2022-01-11 09:59:34 +01:00
Fabian
acd7122aad
add_electricity: revert changes in add_nice_carrier_names
2022-01-11 09:58:59 +01:00
Fabian Hofmann
2c318a247e
Update scripts/prepare_network.py
...
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2022-01-11 09:55:22 +01:00
Fabian
66f2d36f0d
add_electricity: revise code and make it leaner
2022-01-11 09:38:34 +01:00
Max Parzen
6249a9b558
Merge branch 'PyPSA:master' into master
2021-12-23 12:35:10 +01:00
Philipp Glaum
ed83988ed1
hot fix for snakemake bug
2021-12-15 11:02:03 +01:00
martacki
6c4ea69e95
clustering: own config for clustering settings
2021-12-10 17:53:40 +01:00
Max Parzen
f1243c3e0c
Fix distribute clustering with cbc/glpk/ipopt
...
Assume you have 10 nodes that need to be distributed between 2 countries.
What can happen with some of the open source solvers is that one country
gets assigned to 9.01 (float) nodes, and the other one to 0.99.
Now using .astype(int) would lead to a node distribution of 0 and 9, as
the `astype(int)` function round down by default (0.99 -> 0). This assigned
zero value breaks the code in case open source solvers are used.
Gurobi somehow does deal with it.
2021-11-24 14:16:24 +01:00
martacki
299e71e2b3
introduce hierarchical agglomeratice clustering (hac)
2021-11-17 13:46:33 +01:00
Fabian Neumann
c0d1656091
build_load_data: separate retrieving and processing load data
2021-11-10 10:37:09 +01:00
Fabian Neumann
646c5011af
Merge branch 'master' into snakemake_dependencies_in_functions
2021-11-10 09:46:57 +01:00
Fabian
23d3216d92
base_network.py: fix scipy spatial import
2021-10-05 17:30:22 +02:00
Fabian Neumann
2e02af8b4b
change license
2021-09-14 16:37:41 +02:00
martacki
dfb929f2cf
remove snakemake dependencies in functions, use as kwarg instead
2021-09-14 16:34:02 +02:00
Martha Frysztacki
8bec0cc423
simplify: drop incorrect cols if they exist (avoid error) ( #272 )
2021-09-07 16:28:01 +02:00
Fabian
ea50abab6d
doc: fix build warnings
2021-08-27 12:30:29 +02:00
Fabian Hofmann
b9bbefa09f
simplify_network.py fix dict getting
2021-08-27 10:34:27 +02:00
Martha Frysztacki
a6d2a0a99d
style
...
Co-authored-by: Fabian Hofmann <hofmann@fias.uni-frankfurt.de>
2021-08-26 16:00:08 +02:00
Martha Frysztacki
f30ca8a18a
Merge branch 'master' into simplify_to_substations
2021-08-26 15:22:02 +02:00
Martha Frysztacki
1c173567b5
solve_operations_network: include optimized stores to operation ( #269 )
...
* remove stores-buses from load generators
* include optimized stores to operation network
* add release notes
* Update doc/release_notes.rst
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* Update doc/release_notes.rst
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* Update release_notes.rst
* Update scripts/solve_network.py
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-08-18 10:38:51 +02:00
martacki
400317d062
update plot_network and make_summary scripts to latest pypsa/-eur versions
2021-08-16 17:53:56 +02:00
Fabian Neumann
4cc5e49ca8
Adapt to new snapshot weightings ( #259 )
...
* for now use n.snapshot_weightings.generators
* require pypsa master; use .objective for Nyears
* implement suggestions from code review
* add release note
2021-08-06 13:43:12 +00:00
huckebrink
2aa59a3905
exporting additional costs, and compatibility adjustments ( #261 )
...
* added export for connection_cost adjustment
* removed lambda function from multiprocessing
changed true/false_values to lists
* removed double import of functools
* moved added costs to df column
* Update scripts/simplify_network.py
Co-authored-by: Leonie Plaga <leonie.plaga@ruhr-uni-bochum.de>
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-08-04 16:19:23 +00:00
Fabian Neumann
ac3ce07d67
Merge branch 'master' into simplify_to_substations
2021-08-03 15:53:49 +02:00
martacki
89631b240a
correct placement of if/else
2021-07-02 10:04:22 +02:00
Fabian Neumann
d78f8b3e65
Merge branch 'master' into extendable-pnommin
2021-07-01 19:39:01 +02:00
Martha Frysztacki [frɨʂtat͡skʲ]
cf2eff4127
style
...
Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
2021-06-30 21:29:08 +02:00
martacki
b10317ee3c
fix p_nom_min values for extendable carriers with positive p_nom
2021-06-30 21:07:38 +02:00
Fabian Neumann
c5e59dab2f
Merge branch 'master' into simplify_to_substations
2021-06-30 10:34:44 +02:00
Fabian Neumann
5559fe43c9
Merge branch 'master' into substation_lv_bug
2021-06-30 10:33:15 +02:00
euronion
8654077519
Fix creation of renewable profiles for offshore wind. ( #255 )
...
* Update build_renewable_profiles.py
* Update release_notes.rst
* Update release_notes.rst
* Update release_notes.rst
* Update scripts/build_renewable_profiles.py
Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
* Adjust doc string
Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
Co-authored-by: Fabian <fab.hof@gmx.de>
2021-06-28 16:20:29 +02:00
martacki
9825fa32b2
change layout of configuration settings
2021-06-01 12:00:55 +02:00
martacki
d6830d3c48
rename no_substations
2021-06-01 10:55:26 +02:00
Fabian Neumann
bfeb429c27
base: add escape if all TYNDP links already in network ( #246 )
2021-05-25 15:55:39 +02:00
Koen van Greevenbroek
e0215bc5a9
Propagate the solver log file name to the solver ( #247 )
...
* Propagate the solver log file name to the solver
Previously, the PyPSA network solving functions were not told about
the solver logfile specified in the Snakemake file.
* Pass solver_logfile on as kwargs
The `solve_network` function passes any additional arguments on to the
pypsa `network_lopf` and `ilopf` functions. Now we also pass
`solver_logfile` on as part of kwargs.
2021-05-25 15:55:23 +02:00
martacki
14cf5815bb
clear arrangement
2021-05-25 13:02:58 +02:00
martacki
1bd3a5a806
simplify: drop inaccurate columns only if no simpl wildcard is used
2021-05-25 12:58:23 +02:00
Fabian Neumann
11af828c39
remove six dependency ( #245 )
2021-05-25 11:29:47 +02:00