You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
5
-
`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.
6
11
7
12
For a quick start see the `Examples and basic usage <http://windpowerlib.readthedocs.io/en/stable/getting_started.html#examplereference-label>`_ section.
8
13
@@ -19,14 +24,16 @@ Go to the `download page <http://readthedocs.org/projects/windpowerlib/downloads
19
24
Installation
20
25
============
21
26
22
-
If you have a working Python3 environment, use pypi to install the latest windpowerlib version.
27
+
If you have a working Python 3 environment, use pypi to install the latest windpowerlib version. We highly recommend to use virtual environments.
23
28
24
29
::
25
30
26
-
pip3 install windpowerlib
31
+
pip install windpowerlib
32
+
33
+
The windpowerlib is designed for Python 3 and tested on Python >= 3.5.
34
+
Please see the `installation page <http://oemof.readthedocs.io/en/stable/installation_and_setup.html>`_ of the oemof documentation for complete instructions on how to install python and a virtual environment on your operating system.
27
35
28
-
So far, the windpowerlib is mainly tested on python 3.4 but seems to work down to 2.7.
29
-
Please see the `installation page <http://oemof.readthedocs.io/en/stable/installation_and_setup.html>`_ of the oemof documentation for complete instructions on how to install python on your operating system.
36
+
For retrieving power (coefficient) curves from the OpenEnergy Database (oedb) the python package requests will be installed with your windpowerlib installation. The windpowerlib was tested with requests version 2.20.1 but might work with lower versions.
30
37
31
38
Optional Packages
32
39
~~~~~~~~~~~~~~~~~
@@ -40,27 +47,62 @@ Matplotlib can be installed using pip3 though some Linux users reported that it
40
47
Examples and basic usage
41
48
=========================
42
49
43
-
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:
50
+
The basic usage of the windpowerlib is shown in the `modelchain_example<http://windpowerlib.readthedocs.io/en/stable/modelchain_example_notebook.html>`_. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
* `ModelChain example (Python script)<https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/modelchain_example.py>`_
53
+
* `ModelChain example (Jupyter notebook)<https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/modelchain_example.ipynb>`_
47
54
* `Example data file <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/weather.csv>`_
48
55
49
-
50
56
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.
51
57
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
52
58
`how to run <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html>`_ jupyter notebooks.
53
59
60
+
Further functionalities, like the modelling of wind farms and wind turbine clusters, are shown in the `turbine_cluster_modelchain_example <http://windpowerlib.readthedocs.io/en/stable/turbine_cluster_modelchain_example_notebook.html>`_. 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.
61
+
62
+
* `TurbineClusterModelChain example (Python script) <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/turbine_cluster_modelchain_example.py>`_
63
+
* `TurbineClusterModelChain example (Jupyter notebook) <https://raw.githubusercontent.com/wind-python/windpowerlib/master/example/turbine_cluster_modelchain_example.ipynb>`_
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 via github or email (windpowerlib@rl-institut.de).
59
69
60
-
If you are interested in wind models and want to help improve the existing model do not hesitate to contact us.
61
-
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
70
+
Clone: https://github.com/wind-python/windpowerlib and install the cloned repository using pip:
71
+
72
+
.. code:: bash
73
+
74
+
pip install -e /path/to/the/repository
75
+
76
+
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
* `Fork <https://help.github.com/articles/fork-a-repo>`_ the windpowerlib repository to your own github account.
82
+
* Change, add or remove code.
83
+
* Commit your changes.
84
+
* Create a `pull request <https://guides.github.com/activities/hello-world/>`_ and describe what you will do and why.
85
+
* Wait for approval.
86
+
87
+
**Generally the following steps are required when changing, adding or removing code:**
88
+
89
+
* Add new tests if you have written new functions/classes.
90
+
* Add/change the documentation (new feature, API changes ...).
91
+
* Add a whatsnew entry and your name to Contributors.
92
+
* Check if all tests still work by simply executing pytest in your windpowerlib directory:
93
+
94
+
.. role:: bash(code)
95
+
:language: bash
96
+
97
+
.. code:: bash
98
+
99
+
pytest
100
+
101
+
102
+
Citing the windpowerlib
103
+
========================
104
+
105
+
We use the zenodo project to get a DOI for each version. `Search zenodo for the right citation of your windpowerlib version <https://zenodo.org/search?page=1&size=20&q=windpowerlib>`_.
0 commit comments