Skip to content

Commit ec16791

Browse files
author
WolfBunke
authored
Merge pull request #73 from openego/dev
Release merge
2 parents 573b049 + 0069c9c commit ec16791

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6131
-1886
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ ego/scenario_setting.json
88
ego/noise_values.csv
99
.idea/
1010
noise_values.csv
11-
11+
*.pkl
12+
.ipynb_checkpoints

MANIFEST.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include README.rst
2+
include LICENSE
3+
include *txt
4+
include MANIFEST.in
5+
include *.json
6+
include *.rst
7+
include *.csv
8+
include ego/scenario_setting.json
9+
include ego/data/*.csv
10+
include ego/tools/*.json

README.rst

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
.. image:: https://readthedocs.org/projects/openego/badge/?version=latest
2-
:target: http://openego.readthedocs.io/en/latest/?badge=latest
3-
:alt: Documentation Status
1+
|readthedocs| |badge_githubstars|
2+
43

54
.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400
5+
:align: right
6+
:scale: 100%
67

7-
eGo
8-
======
8+
*A cross-grid-level electricity grid and storage optimization tool*
9+
| `openegoproject.wordpress.com <https://openegoproject.wordpress.com/>`_
910
10-
Integrated optimization of flexibility options and grid extension measures for power grids based on eTraGo and eDisGo.
1111

12-
A speciality in this context is that transmission grids are described by the 380, 220 and 110 kV in Germany. The integration of the transmission grid (via eTraGo) and distribution grid (via eDisGo) is part of eGo.
12+
eGo
13+
===
14+
15+
Integrated optimization of flexibility options and grid extension measures
16+
for power grids based on `eTraGo <http://eTraGo.readthedocs.io/>`_ and
17+
`eDisGo <http://edisgo.readthedocs.io/>`_. The Documentation of the eGo tool
18+
can be found on
19+
`openego.readthedocs.io <https://openego.readthedocs.io/en/dev/>`_ .
1320

1421
.. contents::
1522

@@ -20,15 +27,39 @@ Create a virtualenvironment (where you like it) and activate it:
2027

2128
.. code-block::
2229
23-
$ virtualenv eGo --clear -p python3.5
30+
$ virtualenv venv --clear -p python3.5
2431
$ source venv/bin/activate
32+
$ cd venv
33+
$ pip3 install -e git+https://github.com/openego/eGo@dev#egg=eGo --process-dependency-links
34+
2535
26-
$ pip3 install -e git+https://github.com/openego/eGo@dev#egg=eGo --process-dependency-links --allow-all-external
36+
LICENSE
37+
=======
38+
© Europa-Universität Flensburg,
39+
© Flensburg University of Applied Sciences,
40+
Centre for Sustainable Energy Systems
41+
© DLR Institute for Networked Energy Systems,
42+
© Reiner-Lemoine-Institute"
2743

44+
This program is free software: you can redistribute it and/or modify it under
45+
the terms of the GNU Affero General Public License as published by the Free
46+
Software Foundation, either version 3 of the License, or (at your option) any
47+
later version.
2848

29-
Copyleft
30-
========
49+
This program is distributed in the hope that it will be useful, but WITHOUT
50+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
51+
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
52+
details.
3153

32-
Code licensed under "GNU Affero General Public License Version 3 (AGPL-3.0)"
33-
It is a collaborative work with several copyright owner:
34-
Cite as "eGo" © Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems © Europa-Universität Flensburg, Centre for Sustainable Energy Systems © DLR Institute for Networked Energy Systems, © Reiner-Lemoine-Institute"
54+
You should have received a copy of the GNU General Public License along with
55+
this program. If not, see https://www.gnu.org/licenses/.
56+
57+
58+
59+
.. |badge_githubstars| image:: https://img.shields.io/github/stars/openego/eGo.svg?style=flat-square&label=github%20stars
60+
:target: https://github.com/openego/eGo/
61+
:alt: GitHub stars
62+
63+
.. |readthedocs| image:: https://readthedocs.org/projects/openego/badge/?version=latest
64+
:target: http://openego.readthedocs.io/en/latest/?badge=latest
65+
:alt: Documentation Status

doc/_static/ribbons.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/openego/eGo" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#64CEAA; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

doc/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. make doc-string generated documentation appear here
22
33
.. toctree::
4-
:maxdepth: 7
4+
:maxdepth: 4
55
:glob:
6-
:titlesonly:
6+
77

88
API <api/modules>

doc/api/ego.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

doc/api/ego.tools.rst

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,40 @@ ego\.tools package
44
Submodules
55
----------
66

7-
ego\.tools\.economics module
8-
----------------------------
7+
ego\.tools\.economics
8+
---------------------
99

1010
.. automodule:: ego.tools.economics
1111
:members:
1212
:undoc-members:
1313
:show-inheritance:
1414

15-
ego\.tools\.io module
16-
---------------------
15+
ego\.tools\.edisgo_integration
16+
------------------------------
17+
18+
.. automodule:: ego.tools.edisgo_integration
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
ego\.tools\.io
24+
--------------
1725

1826
.. automodule:: ego.tools.io
1927
:members:
2028
:undoc-members:
2129
:show-inheritance:
2230

23-
ego\.tools\.plots module
24-
------------------------
31+
ego\.tools\.mv_cluster
32+
----------------------
33+
34+
.. automodule:: ego.tools.mv_cluster
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
ego\.tools\.plots
40+
-----------------
2541

2642
.. automodule:: ego.tools.plots
2743
:members:
@@ -34,8 +50,8 @@ ego\.tools\.results
3450
.. automodule:: ego.tools.results
3551
:members:
3652
:undoc-members:
37-
:show-inheritance:
38-
53+
:show-inheritance:
54+
3955

4056
ego\.tools\.specs
4157
-----------------
@@ -45,12 +61,18 @@ ego\.tools\.specs
4561
:undoc-members:
4662
:show-inheritance:
4763

48-
ego\.tools\.utilities module
49-
----------------------------
64+
ego\.tools\.storages
65+
--------------------
5066

51-
.. automodule:: ego.tools.utilities
67+
.. automodule:: ego.tools.storages
5268
:members:
5369
:undoc-members:
5470
:show-inheritance:
5571

72+
ego\.tools\.utilities
73+
---------------------
5674

75+
.. automodule:: ego.tools.utilities
76+
:members:
77+
:undoc-members:
78+
:show-inheritance:

doc/api/modules.rst

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,93 @@
1+
===
12
ego
23
===
34

5+
6+
7+
Overview of modules
8+
===================
9+
10+
411
.. toctree::
5-
:maxdepth: 4
12+
:maxdepth: 7
13+
14+
ego.tools
15+
16+
scenario_settings.json
17+
======================
18+
19+
With the ``scenario_settings.json`` file you set up your calcualtion.
20+
The file can be found on
21+
`github <https://github.com/openego/eGo/blob/master/ego/scenario_setting.json>`_.
22+
23+
.. json:object:: scenario_setting.json
24+
25+
This file contains all input settings for the eGo tool.
26+
27+
:property global: Global settings that are valid for both eTraGo and eDisGo
28+
:proptype global: :json:object:`global`
29+
:property eTraGo: eTraGo settings, only valid for eTraGo run
30+
:proptype eTraGo: :json:object:`eTraGo`
31+
:property eDisGo: eDisGo settings, only valid for eDisGo runs
32+
:proptype eDisGo: :json:object:`eDisGo`
33+
34+
35+
.. json:object:: global
36+
37+
:property bool eTraGo: Decide if you want to run the eTraGo tool (HV/EHV grid optimization).
38+
:property bool eDisGo: Decide if you want to run the eDisGo tool (MV grid optimiztaion).
39+
:property string db: Name of your database (e.g.``''oedb''``).
40+
:property bool recover: If ``true``, (previously calculated) eTraGo results are queried from your database (instead of performing a new run).
41+
:property int result_id: ID of the (previeously calculated) eTraGo results that are queried if **recover** is set ``true``.
42+
:property string gridversion: Version of the *open_eGo* input data-sets (e.g. ``''v0.4.2''``)
43+
644

7-
ego
45+
.. json:object:: eTraGo
46+
47+
This section of :json:object:`scenario_setting.json` contains all input parameters for the eTraGo tool. A description of the parameters can be found `here. <https://etrago.readthedocs.io/en/dev/api/etrago.html#module-etrago.appl>`_
48+
49+
Please note that some parameters are already included in :json:object:`global`
50+
51+
52+
.. json:object:: eDisGo
53+
54+
This section of :json:object:`scenario_setting.json` contains all input parameters for the eDisGo tool and the Clustering of MV grids.
55+
56+
:property string ding0_files: Relative path to the MV grid files (created by `ding0 <https://readthedocs.org/projects/dingo/>`_) (e.g. ``''data/MV_grids/20180713110719''``)
57+
:property string choice_mode: Mode that eGo uses to chose MV grids out of the files in **ding0_files** (e.g. ``''manual''``, ``''cluster''`` or ``''all''``). If ``''manual''`` is chosen, the parameter **manual_grids** must contain a list of the desired grids. If ``''cluster''`` is chosen, **no_grids** must specify the desired number of clusters. If ``''all''`` is chosen, all MV grids from **ding0_files** are calculated.
58+
:property list manual_grids: List of MV grid ID's (*open_eGo* HV/MV substation ID's)
59+
:property int no_grids: Number of MV grid clusters (from all files in **ding0_files**, a specified number of representative clusters is calculated)
60+
61+
62+
63+
ego_main.py
64+
===========
65+
66+
This is the application file for the tool eGo. The application eGo calculates
67+
the distribution and transmission grids of eTraGo and eDisGo.
68+
69+
.. note:: Note, the data source of eGo relies on
70+
the Open Energy Database. - The registration for the public
71+
accessible API can be found on
72+
`openenergy-platform.org/login <http://openenergy-platform.org/login/>`_.
73+
74+
Run the ``ego_main.py`` file with:
75+
76+
.. code-block:: bash
77+
78+
>>> python3 ego_main.py
79+
>>> ...
80+
>>> INFO:ego:Start calculation
81+
>>> ...
82+
83+
The eGo App works like:
84+
85+
.. code-block:: python
86+
87+
>>> from ego.tools.io import eGo
88+
>>> ego = eGo(jsonpath='scenario_setting.json')
89+
>>> ego.etrago_line_loading()
90+
>>> print(ego.etrago.storage_costs)
91+
>>> ...
92+
>>> INFO:ego:Start calculation
93+
>>> ...

0 commit comments

Comments
 (0)