Fabian Neumann
0c6c23478b
fix snakemake as --cores (-j) is now a mandatory argument
...
in 5.11.0 https://snakemake.readthedocs.io/en/stable/project_info/history.html
2020-03-17 14:55:30 +01:00
euronion
ccc56ce3c8
Fix: Correctly determine the bus to attatch custom powerplants to. ( #131 )
...
* Add index integrity checks for custom powerplants.
* Update .csv template for custom powerplants.
* Update data/custom_powerplants.csv
* Revert "Merge branch 'master' into fix/custom-powerplants"
This reverts commit 5cd9c1afafd1ab36c31181ffed7635152805ee52, reversing
changes made to 5b1df27b25fdc89acca88395a0ba999f84dce109.
* Update release_notes.rst
* Rephrasing update to release notes.
* Merge with upstream/master (revert reverted merge).
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2020-03-17 09:50:38 +01:00
Fabian Neumann
d57989c027
scripts: mini code cleanup ( #140 )
2020-03-16 15:55:01 +01:00
euronion
2f85b0ede5
Separate retrieval and building of cutouts, natura raster into distinct configurations each. ( #136 )
...
* Separate config switches for retrieving and building cutout, natura raster.
* Include new switches in tutorial and test configs.
* Update release_notes.rst
* Update toplevel.csv
* Update tutorial.rst
* Update configuration.rst
2020-03-16 15:51:47 +01:00
Fabian Neumann
e6057196e5
doc: add warning and link to pypsa-eur-sec [skip travis]
2020-03-15 13:28:06 +01:00
Fabian Neumann
53cdd4433e
environment: pin vresutils to 0.3.1 ( #137 )
2020-03-15 12:52:50 +01:00
Tom Brown
5661047533
README: Add warnings & link to PyPSA-Eur-Sec repo
2020-03-04 19:39:34 +01:00
Tom Brown
1dd5f076a2
README: Add explanation of different sectoral spatial resolutions
2020-03-04 18:38:53 +01:00
Tom Brown
c88bb56b62
README: Include Marta Victoria's diagram of sector linkages
2020-03-04 18:32:06 +01:00
Tom Brown
22f6fe8388
README: Add usage warning
2020-03-04 18:26:26 +01:00
Tom Brown
5dc572c35e
solve_network.py: Remove hacked installation of conda libraries
2020-03-04 18:10:57 +01:00
Fabian Neumann
69fd46290f
solve: include {min,max}_iterations parameters ( #130 )
...
* solve: include {min,max}_iteration parameters
* solve: iterations fix defaults
2020-02-25 22:00:36 +01:00
Fabian Neumann
c2d3cd283f
environment: add lxml for pd.read_html ( closes #129 )
2020-02-25 11:28:38 +01:00
Fabian Neumann
8bed137ca5
unify skip_iterations & skip_iterating to skip_iterations
2020-02-19 17:03:19 +01:00
Martha Maria
63a09bd6da
solving options skip_iterations
...
change to "skip_iterating", as required in scripts/solve_network.py
2020-02-19 09:50:52 +01:00
Martha Maria
b63c19ebc4
solving options skip_iterations
...
change to "skip_iterating", as required in scripts/solve_network.py
2020-02-19 09:48:40 +01:00
Fabian Neumann
e6a1da2996
environment: add gurobipy ( #127 )
...
* environment: add gurobipy
* environment: add gurobi channel
2020-02-13 16:43:50 +01:00
Fabian Neumann
cd85d61470
helpers: importing networks with override_components ( #128 )
...
* helpers: importing networks with override_components (closes #122 ) [skip travis]
* Update scripts/plot_network.py
Co-Authored-By: FabianHofmann <hofmann@fias.uni-frankfurt.de>
Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
2020-02-13 15:51:24 +01:00
Fabian
543bb95759
small fix for solve_operations_network
2020-02-10 16:47:11 +01:00
FabianHofmann
1ecca802f3
Nomopyomo ( #116 )
...
* play around, add new nomopyomo feature
* fix constraints
* fix constraints
* set solver to cbc due to error with gurobi900
* update environments
shift lv and lc constraints to prepare_network
start modifying opt constraints
* correct BAU
* correct environment
* fix import
* fix SAFE constraint
* fix battery charger ratio constraint
* code cleaning
* restructure solve scripts
* fix CCL constraint
* adjust doc
* solve_network: update doc string
* revert unwanted changes
* update environment.yaml
* update environment.yaml II
* force conda update, revert last commit
* revert last change, use other channel priority
* remove trace_sove_network
* add skip_iterating and track_iterations options to config file
* revert last commit, fix environment to current pypsa master
* line break, trigger CI with updated pypsa
* nomopyomo: PR review
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2020-02-10 12:06:43 +01:00
FabianHofmann
ef9e64d457
set bus to nan for powerplants not assigned in kdtree ( #123 )
...
* solves #109
* fix substations_i for no-neighbours in kdtree
2020-02-03 15:01:24 +01:00
Fabian Neumann
b479973b7e
doc: fix tutorial notes to account for '_ec' in filenames [skip travis]
...
* Adressing feedback from denyin: Private message regarding: [pypsa] MissingRuleException when using snakemake command
2020-02-02 11:07:29 +01:00
Tom Brown
ab401907b2
Merge branch 'master' of github.com:nworbmot/pypsa-eur-sec
2020-01-31 19:25:19 +01:00
Tom Brown
d4c6521aaf
For H2 network plotting, introduce dummy MultiIndex to get area
...
Otherwise the area is not consistent with the legend (I'll open a
PyPSA issue).
2020-01-31 19:20:46 +01:00
FabianHofmann
1e9f8717ee
add names to config, add color column to n.carriers
2020-01-29 17:01:57 +01:00
FabianHofmann
af985db802
adjust n.carrier column name 'nice_names' -> 'nice_name'
2020-01-29 16:08:01 +01:00
Fabian Neumann
c1ec91f5ba
doc: note on open-source solver setup [skip travis]
2020-01-24 17:02:09 +01:00
lisazeyen
36a57222f7
Clip p min pu ( #50 )
...
* changes for retrofitting
* changed Snakefile to work with new pypsa-eur version, change solve_network.py to clip also n.generators_t.p_min_pu
* removed retrofitting data files
2020-01-24 15:31:17 +01:00
Fabian
7c14b16777
solve_operations_network: fix snakemake input for unprepared network
2020-01-23 18:47:18 +01:00
Jonas Hörsch
52e4a1b285
environment: Free pyproj from version constraint ( fixes #119 ) ( #120 )
...
* environment: Free pyproj from version constraint (fixes #119 )
proj was constrained to 1.9.6, since cartopy was incompatible with
recent proj versions.
* build_renewable_profiles: Import gdal and geokit after forking
GDAL sets up a shared context on module import which seems to contain a
handle to the PROJ database for coordinate reference systems. By forking
these handles seem to become invalidated or at least are not usable in parallel
anymore.
Instead importing gdal only after setting up the different processes fixes
the database disk image is malformed proj error.
2020-01-23 09:55:59 +01:00
Tom Brown
b6383b37b7
Merge pull request #46 from nworbmot/describe_biomass_categories
...
Describe biomass categories
2020-01-22 16:58:26 +01:00
Tom Brown
e0cf7e0860
Fix transmission map for nomopyomo outputs; plot also H2 network
...
Use s_nom_min for the reference point for the transmission
reinforcement not s_nom, since s_nom is now overwritten for LV > 1.0
(the old pyomo code kept the s_nom variable fixed in the pyomo model
rather than via pypsa setting s_nom_extendable = False, like the
nomopyomo code now does).
The legend scale of the H2 network electrolyzers is wrong. I don't yet
understand why. Possibly the cost scale in the other map is also wrong.
2020-01-21 19:44:36 +01:00
Tom Brown
17e8d114b1
Allow wave costs to be modified
2020-01-14 21:36:35 +01:00
Tom Brown
2278d67687
Add wave with default minimum costs
2020-01-11 09:11:09 +01:00
Tom Brown
9ed2cbffa8
Update code to PyPSA 0.16.1
2020-01-10 18:13:01 +01:00
Fabian Neumann
5934f4f7a1
prepare release v0.1.0 ( #117 )
2020-01-09 14:09:28 +01:00
Fabian Neumann
4cab8a7cf0
doc: fix typo in toplevel.csv [skip travis]
2020-01-07 10:39:58 +01:00
Tom Brown
0e5dcbbce4
Fix clash of names in creation of candidate network for H2
...
Sometimes Lines and Links have same name, so need MultiIndex to avoid
a clash of names.
2019-12-26 10:21:22 +00:00
Tom Brown
9a5ae01a92
Adjust code to use version 0.16.0 of PyPSA for nomopyomo framework
2019-12-26 10:19:26 +00:00
Fabian Neumann
8bd72b47f0
.github: add issue/PR templates [skip travis]
2019-12-23 14:55:30 +01:00
Fabian Neumann
b8e3682bba
doc: update release notes [skip travis]
2019-12-22 18:38:01 +01:00
Tom Brown
ca15750b48
Catch process emissions from feedstock for industry demand script
2019-12-19 17:49:45 +01:00
Tom Brown
ba52bbf5d4
Merge branch 'process'
2019-12-19 14:04:04 +01:00
Tom Brown
180846945f
Fix bug in ordering of MultiIndex in make_summary.py
...
df.loc[idx[a,b,some_list],label] does NOT preserve the ordering of
some_list, but sorts it instead. Therefore the pattern:
df.loc[idx[a,b,s.index],label] = s.values
was mismatching the index and values.
2019-12-19 11:40:17 +01:00
Tom Brown
eb2fa1b24e
Adjust plotting for new CCS scheme
2019-12-19 11:39:38 +01:00
Tom Brown
c525e2a6ae
Install package dependencies nomopyomo branch PyPSA and gurobipy
...
Inelegant - installed by hand in solve_network.py.
Should replace with environment.yaml.
2019-12-19 11:38:43 +01:00
Tom Brown
52581466b6
Account for chemical industry process emissions more carefully
...
Remove emissions from hydrogen production for ammonia (since H2 now
comes from electrolysis).
Allow process emissions from petrochemical production to be captured
(the carbon is not necessarily fossil, but could come from CCU).
2019-12-18 09:45:14 +01:00
Tom Brown
105aeba215
Merge branch 'nomopyomo'
2019-12-13 18:07:06 +01:00
Tom Brown
41f7f44dcf
Make CCS optional for SMR and industry process emissions
2019-12-13 18:06:38 +01:00
Tom Brown
49a68bdd35
Separate CHP gas/solid biomass, with/without CCS
...
Also fix CHP p_nom_ratio constraint, and battery charger/discharger
constraint.
2019-12-12 15:03:51 +01:00