Developer notes¶
Installation¶
Note
Installation is only tested on (Ubuntu 16.04 ) linux OS.
Please read the Installation Guideline ego.doc.installation.
1. Use virtual environment¶
Create a virtualenvironment and activate it:
$ virtualenv --clear -p python3.5 ego_dev``
$ cd ego_dev/
$ source bin/activate
2. Get eGo¶
Clone eGo from github.com by running the following command in your terminal:
$ git clone https://github.com/openego/eGo
With your activated environment cd to the cloned directory and run
pip3 install -e eGo --process-dependency-links
.
This will install all needed packages into your environment.
3. Get your Database login data¶
4. Create Dingo grids¶
Install ding0 from github.com and run the example_parallel_multiple_grid_districts.py
script, which can be found under ding0/ding0/examples/
.
$ git clone https://github.com/openego/ding0.git
$ pip3 install -e ding0
$ python3 ding0/ding0/examples/example_parallel_multiple_grid_districts.py
Learn more about Dingo.
Before you run the script check also the configs of Dingo and eDisGo in order to
use the right database version. You finde this files unter
ding0/ding0/config/config_db_tables.cfg
and
~.edisgo/config/config_db_tables.cfg
. Your created ding0 grids are stored in
~.ding0/..
.