Adjust code to use version 0.16.0 of PyPSA for nomopyomo framework

This commit is contained in:
Tom Brown 2019-12-26 10:19:26 +00:00
parent ca15750b48
commit 9a5ae01a92
2 changed files with 6 additions and 10 deletions

View File

@ -40,10 +40,10 @@ projects % git clone git@github.com:nworbmot/pypsa-eur-sec.git
The requirements are the same as
[PyPSA-Eur](https://github.com/PyPSA/pypsa-eur), but for
`solve_network.py` in addition you need `gurobipy` and the `nomopyomo`
branch of PyPSA, which are currently imported "by hand" at the start
of the `solve_network.py` script. The `nomopyomo` branch will be
merged into the future PyPSA release 0.16.0.
`solve_network.py` in addition you need `gurobipy` and version
>=0.16.0 of PyPSA in order to use the `nomopyomo` framework. These
libraries are currently imported "by hand" at the start of the
`solve_network.py` script.
## Data requirements

View File

@ -1,12 +1,8 @@
import os
os.system("conda config --add channels http://conda.anaconda.org/gurobi")
os.system("conda install -y -c gurobi gurobi=8.1.0")
os.system("conda install -y gurobi=8.1.0")
os.system("conda install -y git")
os.system("pip install -U git+git://github.com/PyPSA/pypsa.git@nomopyomo#egg=pypsa")
os.system("conda install -y -c conda-forge pypsa=0.16.0")
#import sys