Skip to content

Commit aac2e3a

Browse files
authored
Merge pull request #25 from wind-python/release_preparation
Release preparation: Changes to documentation, Renaming of examples, Fixes, Elimination of Warnings...
2 parents 38fdce0 + b0bfd0f commit aac2e3a

25 files changed

+1352
-612
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ pip-delete-this-directory.txt
3636

3737
# Doc
3838
doc/temp/
39+
.doctrees
40+
.buildinfo
3941

4042
# Unit test / coverage reports
4143
htmlcov/

README.rst

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Introduction
77
=============
88

99
The windpowerlib is a library that provides a set of functions and classes to calculate the power output of wind turbines. It was originally part of the
10-
`feedinlib <https://github.com/oemof/feedinlib>`_ (windpower and pv) but was taken out to build up a community concentrating on wind power models.
10+
`feedinlib <https://github.com/oemof/feedinlib>`_ (windpower and photovoltaic) but was taken out to build up a community concentrating on wind power models.
1111

1212
For a quick start see the `Examples and basic usage <http://windpowerlib.readthedocs.io/en/stable/getting_started.html#examplereference-label>`_ section.
1313

@@ -45,33 +45,61 @@ Matplotlib can be installed using pip3 though some Linux users reported that it
4545
Examples and basic usage
4646
=========================
4747

48-
The basic usage of the windpowerlib is shown `here <http://windpowerlib.readthedocs.io/en/stable/basic_example_notebook.html>`_. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
48+
The basic usage of the windpowerlib is shown in the `modelchain_example <http://windpowerlib.readthedocs.io/en/stable/basic_example_notebook.html>`_. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
4949

50-
* `Basic example (Python script) <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/basic_example.py>`_
51-
* `Basic example (Jupyter notebook) <https://raw.githubusercontent.com/wind-python/windpowerlib/features/revise_example/example/basic_example.ipynb>`_
50+
* `ModelChain example (Python script) <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/basic_example.py>`_
51+
* `ModelChain example (Jupyter notebook) <https://raw.githubusercontent.com/wind-python/windpowerlib/features/revise_example/example/basic_example.ipynb>`_
5252
* `Example data file <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/weather.csv>`_
5353

5454

5555
To run the examples you first have to install the windpowerlib. To run the notebook you also need to install notebook using pip3. To launch jupyter notebook type ``jupyter notebook`` in terminal.
5656
This will open a browser window. Navigate to the directory containing the notebook to open it. See the jupyter notebook quick start guide for more information on `how to install <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/install.html>`_ and
5757
`how to run <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html>`_ jupyter notebooks.
5858

59-
The usage of further functions are shown in a second example. As the basic usage example it is available as jupyter notebook and as python script. The weather data in this example is the same as in the example above.
59+
Further functionalities, like the modelling of wind farms and wind turbine clusters, are shown in a second example. As the ModelChain example it is available as jupyter notebook and as python script. The weather data in this example is the same as in the example above.
6060

61-
* `Further example (Python script) <https://raw.githubusercontent.com/wind-python/windpowerlib/release_preparation/example/further_example.py>`_
62-
* `Further example (Jupyter notebook) <https://raw.githubusercontent.com/wind-python/windpowerlib/release_preparation/example/basic_example.ipynb>`_
61+
* `TurbineClusterModelChain example (Python script) <https://raw.githubusercontent.com/wind-python/windpowerlib/release_preparation/example/further_example.py>`_
62+
* `TurbineClusterModelChain example (Jupyter notebook) <https://raw.githubusercontent.com/wind-python/windpowerlib/release_preparation/example/basic_example.ipynb>`_
6363
* `Example data file <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/weather.csv>`_
6464

6565

6666
Contributing
6767
==============
6868

69-
Clone/Fork: https://github.com/wind-python/windpowerlib
69+
We are warmly welcoming all who want to contribute to the windpowerlib. If you are interested in wind models and want to help improving the existing model do not hesitate to contact us.
7070

71-
If you are interested in wind models and want to help improve the existing model do not hesitate to contact us.
72-
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
71+
Clone: https://github.com/wind-python/windpowerlib and install the cloned repository using pip:
72+
73+
.. code:: bash
74+
75+
pip install -e /path/to/the/repository
76+
77+
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
7378
`developer rules <http://oemof.readthedocs.io/en/stable/developing_oemof.html>`_.
7479

80+
**How to create a pull request:**
81+
82+
* `Fork <https://help.github.com/articles/fork-a-repo>`_ the windpowerlib repository to your own github account.
83+
* Change, add or remove code.
84+
* Commit your changes.
85+
* Create a `pull request <https://guides.github.com/activities/hello-world/>`_ and describe what you will do and why.
86+
* Wait for approval.
87+
88+
**Generally the following steps are required when changing, adding or removing code:**
89+
90+
* Add new tests if you have written new functions/classes.
91+
* Add/change the documentation (new feature, API changes ...).
92+
* Add a whatsnew entry and your name to Contributors.
93+
* Check if all tests still work by simply executing pytest in your windpowerlib directory:
94+
95+
.. role:: bash(code)
96+
:language: bash
97+
98+
.. code:: bash
99+
100+
pytest
101+
102+
75103
Citing the windpowerlib
76104
========================
77105

doc/basic_example_notebook.ipynb

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

doc/example.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.. autosummary::
44
:toctree: temp/
55

6-
basic_example.get_weather_data
7-
basic_example.initialise_wind_turbines
8-
basic_example.calculate_power_output
9-
basic_example.plot_or_print
10-
basic_example.run_basic_example
6+
modelchain_example.get_weather_data
7+
modelchain_example.initialize_wind_turbines
8+
modelchain_example.calculate_power_output
9+
modelchain_example.plot_or_print
10+
modelchain_example.run_example

doc/example_2.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.. autosummary::
44
:toctree: temp/
55

6-
further_example.initialise_wind_farm
7-
further_example.initialise_wind_turbine_cluster
8-
further_example.calculate_power_output
9-
further_example.plot_or_print
10-
further_example.run_example
6+
turbine_cluster_modelchain_example.initialize_wind_farms
7+
turbine_cluster_modelchain_example.initialize_wind_turbine_cluster
8+
turbine_cluster_modelchain_example.calculate_power_output
9+
turbine_cluster_modelchain_example.plot_or_print
10+
turbine_cluster_modelchain_example.run_example

doc/examples.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#############
2+
Examples
3+
#############
4+
5+
6+
.. toctree::
7+
8+
modelchain_example_notebook
9+
turbine_cluster_modelchain_example_notebook

doc/examples_basic_and_further.rst

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

doc/getting_started.rst

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Introduction
66
=============
77

88
The windpowerlib is a library that provides a set of functions and classes to calculate the power output of wind turbines. It was originally part of the
9-
`feedinlib <https://github.com/oemof/feedinlib>`_ (windpower and pv) but was taken out to build up a community concentrating on wind power models.
9+
`feedinlib <https://github.com/oemof/feedinlib>`_ (windpower and photovoltaic) but was taken out to build up a community concentrating on wind power models.
1010

1111
For a quick start see the :ref:`examplereference-label` section.
1212

@@ -44,31 +44,58 @@ Matplotlib can be installed using pip3 though some Linux users reported that it
4444
Examples and basic usage
4545
=========================
4646

47-
The basic usage of the windpowerlib is shown :ref:`here <basic_example_notebook.ipynb>`. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
47+
The basic usage of the windpowerlib is shown in the :ref:`modelchain_example <modelchain_example_notebook.ipynb>`. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
4848

49-
* :download:`Basic example (Python script) <../example/basic_example.py>`
50-
* :download:`Basic example (Jupyter notebook) <../example/basic_example.ipynb>`
49+
* :download:`ModelChain example (Python script) <../example/modelchain_example.py>`
50+
* :download:`ModelChain example (Jupyter notebook) <../example/modelchain_example.ipynb>`
5151
* :download:`Example data file <../example/weather.csv>`
5252

5353
To run the examples you first have to install the windpowerlib. To run the notebook you also need to install notebook using pip3. To launch jupyter notebook type ``jupyter notebook`` in terminal.
5454
This will open a browser window. Navigate to the directory containing the notebook to open it. See the jupyter notebook quick start guide for more information on `how to install <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/install.html>`_ and
5555
`how to run <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html>`_ jupyter notebooks.
5656

57-
Further functionalities are shown in a second example. As the basic usage example it is available as jupyter notebook and as python script. The weather data in this example is the same as in the example above.
57+
Further functionalities, like the modelling of wind farms and wind turbine clusters, are shown in a second example. As the ModelChain example it is available as jupyter notebook and as python script. The weather data in this example is the same as in the example above.
5858

59-
* :download:`Further example (Python script) <../example/further_example.py>`
60-
* :download:`Further example (Jupyter notebook) <../example/further_example.ipynb>`
59+
* :download:`TurbineClusterModelChain example (Python script) <../example/turbine_cluster_modelchain_example.py>`
60+
* :download:`TurbineClusterModelChain example (Jupyter notebook) <../example/turbine_cluster_modelchain_example.ipynb>`
6161
* :download:`Example data file <../example/weather.csv>`
6262

6363
Contributing
6464
==============
6565

66-
Clone/Fork: https://github.com/wind-python/windpowerlib
66+
We are warmly welcoming all who want to contribute to the windpowerlib. If you are interested in wind models and want to help improving the existing model do not hesitate to contact us.
6767

68-
If you are interested in wind models and want to help improve the existing model do not hesitate to contact us.
69-
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
68+
Clone: https://github.com/wind-python/windpowerlib and install the cloned repository using pip:
69+
70+
.. code:: bash
71+
72+
pip install -e /path/to/the/repository
73+
74+
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
7075
`developer rules <http://oemof.readthedocs.io/en/stable/developing_oemof.html>`_.
7176

77+
**How to create a pull request:**
78+
79+
* `Fork <https://help.github.com/articles/fork-a-repo>`_ the windpowerlib repository to your own github account.
80+
* Change, add or remove code.
81+
* Commit your changes.
82+
* Create a `pull request <https://guides.github.com/activities/hello-world/>`_ and describe what you will do and why.
83+
* Wait for approval.
84+
85+
**Generally the following steps are required when changing, adding or removing code:**
86+
87+
* Add new tests if you have written new functions/classes.
88+
* Add/change the documentation (new feature, API changes ...).
89+
* Add a whatsnew entry and your name to Contributors.
90+
* Check if all tests still work by simply executing pytest in your windpowerlib directory:
91+
92+
.. role:: bash(code)
93+
:language: bash
94+
95+
.. code:: bash
96+
97+
pytest
98+
7299
Citing the windpowerlib
73100
========================
74101

doc/index.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ Contents:
88
:glob:
99

1010
getting_started
11-
12-
.. toctree::
13-
:maxdepth: 3
14-
:glob:
15-
16-
examples_basic_and_further
17-
18-
.. toctree::
19-
:maxdepth: 2
20-
:glob:
21-
11+
examples
2212
whats_new
2313
modules
2414

0 commit comments

Comments
 (0)