Skip to content

Commit d5ec720

Browse files
authored
Merge pull request #161 from openego/dev
Release 0.0.10
2 parents a5104d5 + a4c3aea commit d5ec720

Some content is hidden

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

41 files changed

+649
-346
lines changed

.readthedocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: doc/conf.py
11+
12+
# Build documentation with MkDocs
13+
#mkdocs:
14+
# configuration: mkdocs.yml
15+
16+
# Optionally build your docs in additional formats such as PDF and ePub
17+
formats: all
18+
19+
# Optionally set the version of Python and requirements required to build your docs
20+
python:
21+
version: 3.6
22+
install:
23+
- requirements: rtd_requirements.txt

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
# built documents.
107107
#
108108
# The short X.Y version.
109-
version = '0.0.9'
109+
version = '0.0.10'
110110
# The full version, including alpha/beta/rc tags.
111111
release = version
112112

doc/config

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/configs.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config_db_tables
1313
The config file ``config_db_tables.cfg`` holds data about which database connection
1414
to use from your saved database connections and which dataprocessing version.
1515

16-
.. include:: config/config_db_tables_default.cfg
16+
.. include:: ../edisgo/config/config_db_tables_default.cfg
1717
:literal:
1818

1919
.. _config_grid_expansion:
@@ -25,7 +25,7 @@ The config file ``config_grid_expansion.cfg`` holds data mainly needed to determ
2525
grid expansion needs and costs - these are standard equipment to use in grid expansion and
2626
its costs, as well as allowed voltage deviations and line load factors.
2727

28-
.. include:: config/config_grid_expansion_default.cfg
28+
.. include:: ../edisgo/config/config_grid_expansion_default.cfg
2929
:literal:
3030

3131
.. _config_timeseries:
@@ -39,16 +39,16 @@ used in conventional grid expansion planning, power factors and modes (inductive
3939
or capacitative) to generate reactive power time series, as well as configurations
4040
of the demandlib in case load time series are generated using the oemof demandlib.
4141

42-
.. include:: config/config_timeseries_default.cfg
42+
.. include:: ../edisgo/config/config_timeseries_default.cfg
4343
:literal:
4444

4545
.. _config_grid:
4646

4747
config_grid
4848
----------------------
4949

50-
The config file ``config_grid.cfg`` holds data to specify parameters used when
50+
The config file ``config_grid.cfg`` holds data to specify parameters used when
5151
connecting new generators to the grid and where to position disconnecting points.
5252

53-
.. include:: config/config_grid_default.cfg
53+
.. include:: ../edisgo/config/config_grid_default.cfg
5454
:literal:

doc/equipment

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/equipment.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@ The following tables hold all data of cables, lines and transformers used.
88
.. _lv_cables_table:
99

1010
.. csv-table:: LV cables
11-
:file: equipment/equipment-parameters_LV_cables.csv
11+
:file: ../edisgo/equipment/equipment-parameters_LV_cables.csv
1212
:delim: ,
1313
:header-rows: 2
14-
:widths: 5, 1, 1, 1, 1, 1, 5
14+
:widths: 3, 1, 1, 1, 1
1515
:stub-columns: 0
1616

1717
.. _mv_cables_table:
1818

1919
.. csv-table:: MV cables
20-
:file: equipment/equipment-parameters_MV_cables.csv
20+
:file: ../edisgo/equipment/equipment-parameters_MV_cables.csv
2121
:delim: ,
2222
:header-rows: 2
23-
:widths: 5, 1, 1, 1, 1, 1
23+
:widths: 4, 1, 1, 1, 1, 1
2424
:stub-columns: 0
2525

2626
.. _mv_lines_table:
2727

2828
.. csv-table:: MV overhead lines
29-
:file: equipment/equipment-parameters_MV_overhead_lines.csv
29+
:file: ../edisgo/equipment/equipment-parameters_MV_overhead_lines.csv
3030
:delim: ,
3131
:header-rows: 2
32-
:widths: 5, 1, 1, 1, 1, 1
32+
:widths: 4, 1, 1, 1, 1, 1
3333
:stub-columns: 0
3434

3535
.. _lv_transformers_table:
3636

3737
.. csv-table:: LV transformers
38-
:file: equipment/equipment-parameters_LV_transformers.csv
38+
:file: ../edisgo/equipment/equipment-parameters_LV_transformers.csv
3939
:delim: ,
4040
:header-rows: 2
41-
:widths: 5, 1, 1, 1, 1
41+
:widths: 5, 1, 1, 1
4242
:stub-columns: 0
4343

4444
.. _mv_transformers_table:
4545

4646
.. csv-table:: MV transformers
47-
:file: equipment/equipment-parameters_MV_transformers.csv
47+
:file: ../edisgo/equipment/equipment-parameters_MV_transformers.csv
4848
:delim: ,
4949
:header-rows: 2
50-
:widths: 5, 1, 1, 1
50+
:widths: 5, 1
5151
:stub-columns: 0

doc/features_in_detail.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ The order grid expansion measures are conducted is as follows:
3030

3131
Reinforcement of stations and lines due to overloading issues is performed twice, once in the beginning and again after fixing voltage issues,
3232
as the changed power flows after reinforcing the grid may lead to new overloading issues. How voltage and overloading issues are identified and
33-
solved is explained in the following sections.
33+
solved is shown in figure :ref:`grid_expansion_measures_fig` and further explained in the following sections.
34+
35+
.. _grid_expansion_measures_fig:
36+
.. figure:: images/grid_expansion_measures.png
37+
:scale: 50%
38+
39+
Grid expansion measures
3440

3541
:py:func:`~edisgo.flex_opt.reinforce_grid.reinforce_grid` offers a few additional options. It is e.g. possible to conduct grid
3642
reinforcement measures on a copy
@@ -40,6 +46,7 @@ allowed voltage deviation limits for MV and LV.
4046
See documentation of :py:func:`~edisgo.flex_opt.reinforce_grid.reinforce_grid` for more information.
4147

4248

49+
4350
Identification of overloading and voltage issues
4451
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4552

34.1 KB
Loading

doc/quickstart.rst

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,6 @@ is the only supported data source. You can retrieve data from `Zenodo <https://z
2828
(make sure you choose latest data) or check
2929
out the ding0 documentation on how to generate grids yourself.
3030

31-
Aside from grid topology data you may eventually need a dataset on future installation of power plants. You
32-
may therefore use the scenarios developed in the `open_eGo <https://openegoproject.wordpress.com>`_ that
33-
are available in `OpenEnergy DataBase (oedb) <https://openenergy-platform.org/dataedit/>`_ hosted on the `OpenEnergy Platform (OEP) <https://oep.iks.cs.ovgu.de/>`_.
34-
eDisGo provides an interface to the oedb using the package `ego.io <https://github.com/openego/ego.io>`_. ego.io gives you a python SQL-Alchemy representations of
35-
the oedb and access to it by using the `oedialect <https://github.com/openego/oedialect>`_, an SQL-Alchemy dialect used by the OEP.
36-
37-
To retrieve data from the oedb you need to create an account `here <http://openenergy-platform.org/login/>`_.
38-
Upon retrieving data with eDisGo from the oedb for the first time you will be asked to type in your login information.
39-
If you wish so, your login data will be saved to the folder ``.egoio`` to the file
40-
``config.ini`` and your password stored in a keyring, so that you don't need to type it in every time you retrieve data.
41-
The ``config.ini`` holds the following information:
42-
43-
.. code-block:: bash
44-
45-
[oedb]
46-
dialect = oedialect
47-
username = <username>
48-
database = oedb
49-
host = openenergy-platform.org
50-
port = 80
51-
5231
.. _edisgo-mwe:
5332

5433
A minimum working example
@@ -57,6 +36,13 @@ A minimum working example
5736
Following you find short examples on how to use eDisGo. Further examples and details are provided in :ref:`usage-details`.
5837

5938
All following examples assume you have a ding0 grid topology file named "ding0_grids__42.pkl" in current working directory.
39+
40+
Aside from grid topology data you may eventually need a dataset on future installation of power plants. You
41+
may therefore use the scenarios developed in the `open_eGo <https://openegoproject.wordpress.com>`_ project that
42+
are available in the `OpenEnergy DataBase (oedb) <https://openenergy-platform.org/dataedit/>`_ hosted on the `OpenEnergy Platform (OEP) <https://oep.iks.cs.ovgu.de/>`_.
43+
eDisGo provides an interface to the oedb using the package `ego.io <https://github.com/openego/ego.io>`_. ego.io gives you a python SQL-Alchemy representations of
44+
the oedb and access to it by using the `oedialect <https://github.com/openego/oedialect>`_, an SQL-Alchemy dialect used by the OEP.
45+
6046
You can run a worst-case scenario as follows:
6147

6248
Using package included command-line script
@@ -77,7 +63,7 @@ Or coding the script yourself with finer control of details
7763
edisgo = EDisGo(ding0_grid="ding0_grids__42.pkl",
7864
worst_case_analysis='worst-case')
7965
80-
# Import future generators (OEP account needed!)
66+
# Import scenario for future generators from the oedb
8167
edisgo.import_generators(generator_scenario='nep2035')
8268
8369
# Conduct grid analysis (non-linear power flow)
@@ -119,16 +105,16 @@ Instead of conducting a worst-case analysis you can also provide specific time s
119105
'other': [1] * len(timeindex)},
120106
index=timeindex)
121107
108+
# Set up the EDisGo object with your own time series and generator scenario
109+
# NEP2035
122110
edisgo = EDisGo(
123111
ding0_grid="ding0_grids__42.pkl",
112+
generator_scenario='nep2035',
124113
timeseries_load=timeseries_load,
125114
timeseries_generation_fluctuating=timeseries_generation_fluctuating,
126115
timeseries_generation_dispatchable=timeseries_generation_dispatchable,
127116
timeindex=timeindex)
128117
129-
# Import future generators for NEP2035 scenario
130-
edisgo.import_generators(generator_scenario='nep2035')
131-
132118
# Do grid reinforcement
133119
edisgo.reinforce()
134120
@@ -152,14 +138,12 @@ using the provided API for the oemof demandlib and the OpenEnergy DataBase:
152138
index=timeindex)
153139
edisgo = EDisGo(
154140
ding0_grid="ding0_grids__42.pkl",
141+
generator_scenario='ego100',
155142
timeseries_load='demandlib',
156143
timeseries_generation_fluctuating='oedb',
157144
timeseries_generation_dispatchable=timeseries_generation_dispatchable,
158145
timeindex=timeindex)
159146
160-
# Import future generators for ego100 scenario
161-
edisgo.import_generators(generator_scenario='ego100')
162-
163147
# Do grid reinforcement
164148
edisgo.reinforce()
165149

doc/whatsnew/v0-0-10.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Release v0.0.10
2+
================
3+
4+
Release date: <month> <day>, <year>
5+
6+
Changes
7+
-------
8+
* Updated to networkx 2.0
9+
* Changed data of transformers `#240 <https://github.com/openego/ding0/issues/240>`_
10+
* Proper session handling and readonly usage (PR `#160 <https://github.com/openego/eDisGo/pull/160>`_)
11+
12+
Bug fixes
13+
----------
14+
* Corrected calculation of current from pypsa power flow results (PR `#153 <https://github.com/openego/eDisGo/pull/153>`_).
15+

0 commit comments

Comments
 (0)