Skip to content

Commit 10ee198

Browse files
committed
OMXMerge branch 'dev' into features/tools
2 parents 0cb1e37 + df4d3b6 commit 10ee198

Some content is hidden

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

45 files changed

+3480
-1372
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ ENV/
9191

9292
# Rope project settings
9393
.ropeproject
94+
95+
# tests
96+
.pytest_cache

README.rst

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,19 @@
1-
windpowerlib
2-
==============
3-
4-
The windpowerlib is designed to calculate feedin time series of wind power plants. The windpowerlib is an out-take from the
5-
`feedinlib <https://github.com/oemof/feedinlib>`_ (windpower and pv) to build up a community concentrating on wind power models.
6-
7-
.. contents:: `Table of contents`
8-
:depth: 1
9-
:local:
10-
:backlinks: top
11-
121
Introduction
13-
============
2+
=============
143

15-
Having weather data sets you can use the windpowerlib to calculate the electrical output of common wind turbines.
16-
Basic parameters for many manufacturers are provided with the library so that you can start directly using one of these parameter sets. Of course you are free to add your own parameter set.
17-
For a quick start download the example weather data and basic example file and execute it:
4+
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.
186

19-
https://github.com/wind-python/windpowerlib/tree/master/example
7+
For a quick start see the `Examples and basic usage <http://windpowerlib.readthedocs.io/en/latest/getting_started.html#examplereference-label>`_ section.
208

21-
Documentation
22-
==============
239

24-
Full documentation can be found at `readthedocs <http://windpowerlib.readthedocs.org/en/latest/>`_. Use the project site of readthedocs to choose the version of the documentation.
25-
26-
Contributing
10+
Documentation
2711
==============
2812

29-
Clone/Fork: https://github.com/wind-python/windpowerlib
13+
Full documentation can be found at `readthedocs <http://windpowerlib.readthedocs.org>`_.
3014

31-
If you are interested in wind models and want to help improve the existing model do not hesitate to contact us.
32-
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
33-
`developer rules <http://oemof.readthedocs.io/en/stable/developing_oemof.html>`_.
15+
Use the `project site <http://readthedocs.org/projects/windpowerlib>`_ of readthedocs to choose the version of the documentation.
16+
Go to the `download page <http://readthedocs.org/projects/windpowerlib/downloads/>`_ to download different versions and formats (pdf, html, epub) of the documentation.
3417

3518

3619
Installation
@@ -40,18 +23,63 @@ If you have a working Python3 environment, use pypi to install the latest windpo
4023

4124
::
4225

43-
pip install windpowerlib
26+
pip3 install windpowerlib
4427

45-
So far, the windpowerlib is mainly tested on python 3.4 but seems to work down to 2.7
46-
and for newer versions. 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.
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.
4730

48-
4931
Optional Packages
5032
~~~~~~~~~~~~~~~~~
5133

52-
To see the plots of the example file you should install the matplotlib package.
34+
To see the plots of the windpowerlib example in the `Examples and basic usage <http://windpowerlib.readthedocs.io/en/latest/getting_started.html#examplereference-label>`_ section you should `install the matplotlib package <http://matplotlib.org/users/installing.html>`_.
35+
Matplotlib can be installed using pip3 though some Linux users reported that it is easier and more stable to use the pre-built packages of your Linux distribution.
36+
37+
38+
.. _examplereference-label:
39+
40+
Examples and basic usage
41+
=========================
42+
43+
The basic usage of the windpowerlib is shown `here <http://windpowerlib.readthedocs.io/en/latest/basic_example_notebook.html>`_. The presented example is available as jupyter notebook and python script. You can download them along with example weather data:
44+
45+
* `Python script <https://raw.githubusercontent.com/wind-python/windpowerlib/dev/example/basic_example.py>`_
46+
* `Jupyter notebook <https://raw.githubusercontent.com/wind-python/windpowerlib/features/revise_example/example/basic_example.ipynb>`_
47+
* `Example data file <https://raw.githubusercontent.com/wind-python/windpowerlib/dev/example/weather.csv>`_
48+
49+
50+
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+
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+
`how to run <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html>`_ jupyter notebooks.
53+
54+
55+
Contributing
56+
==============
57+
58+
Clone/Fork: https://github.com/wind-python/windpowerlib
59+
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
62+
`developer rules <http://oemof.readthedocs.io/en/stable/developing_oemof.html>`_.
63+
64+
Citing the windpowerlib
65+
========================
66+
67+
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>`_.
68+
69+
License
70+
============
71+
72+
Copyright (C) 2017 oemof developing group
5373

54-
Matplotlib can be installed using pip3 but some Linux users reported that it is easier and more stable to use the pre-built packages of your Linux distribution.
74+
This program is free software: you can redistribute it and/or modify
75+
it under the terms of the GNU General Public License as published by
76+
the Free Software Foundation, either version 3 of the License, or
77+
(at your option) any later version.
5578

56-
http://matplotlib.org/users/installing.html
79+
This program is distributed in the hope that it will be useful,
80+
but WITHOUT ANY WARRANTY; without even the implied warranty of
81+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
82+
GNU General Public License for more details.
5783

84+
You should have received a copy of the GNU General Public License
85+
along with this program. If not, see http://www.gnu.org/licenses/.

VERSION

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

doc/basic_example_notebook.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../example/basic_example.ipynb

doc/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
'sphinx.ext.viewcode',
3939
'sphinx.ext.imgmath',
4040
'sphinx.ext.napoleon',
41-
'sphinx.ext.autosummary'
41+
'sphinx.ext.autosummary',
42+
'nbsphinx'
4243

4344
]
4445

@@ -60,7 +61,7 @@
6061
# General information about the project.
6162
project = u'windpowerlib'
6263
copyright = u'2016, oemof developer group'
63-
author = u'Uwe Krien, oemof developing group'
64+
author = u'oemof developing group'
6465

6566
import windpowerlib
6667

@@ -284,7 +285,7 @@
284285

285286
# Bibliographic Dublin Core info.
286287
epub_title = u'windpowerlib'
287-
epub_author = u'Uwe Krien, oemof developing group'
288+
epub_author = u'oemof developing group'
288289
epub_publisher = u'oemof developing group'
289290
epub_copyright = u'2016, oemof developing group'
290291

doc/example.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. currentmodule:: example
2+
3+
.. autosummary::
4+
:toctree: temp/
5+
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

doc/example_documentation.rst

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

doc/getting_started.rst

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,87 @@
22
Getting started
33
~~~~~~~~~~~~~~~~~~~~~~
44

5-
.. include:: ../README.rst
5+
Introduction
6+
=============
7+
8+
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.
10+
11+
For a quick start see the :ref:`examplereference-label` section.
12+
13+
14+
Documentation
15+
==============
16+
17+
Full documentation can be found at `readthedocs <http://windpowerlib.readthedocs.org>`_.
18+
19+
Use the `project site <http://readthedocs.org/projects/windpowerlib>`_ of readthedocs to choose the version of the documentation.
20+
Go to the `download page <http://readthedocs.org/projects/windpowerlib/downloads/>`_ to download different versions and formats (pdf, html, epub) of the documentation.
21+
22+
23+
Installation
24+
============
25+
26+
If you have a working Python3 environment, use pypi to install the latest windpowerlib version.
27+
28+
::
29+
30+
pip3 install windpowerlib
31+
32+
So far, the windpowerlib is mainly tested on python 3.4 but seems to work down to 2.7.
33+
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.
34+
35+
Optional Packages
36+
~~~~~~~~~~~~~~~~~
37+
38+
To see the plots of the windpowerlib example in the :ref:`examplereference-label` section you should `install the matplotlib package <http://matplotlib.org/users/installing.html>`_.
39+
Matplotlib can be installed using pip3 though some Linux users reported that it is easier and more stable to use the pre-built packages of your Linux distribution.
40+
41+
42+
.. _examplereference-label:
43+
44+
Examples and basic usage
45+
=========================
46+
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:
48+
49+
* :download:`Python script <../example/basic_example.py>`
50+
* :download:`Jupyter notebook <../example/basic_example.ipynb>`
51+
* :download:`Example data file <../example/weather.csv>`
52+
53+
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.
54+
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
55+
`how to run <http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html>`_ jupyter notebooks.
56+
57+
58+
Contributing
59+
==============
60+
61+
Clone/Fork: https://github.com/wind-python/windpowerlib
62+
63+
If you are interested in wind models and want to help improve the existing model do not hesitate to contact us.
64+
As the windpowerlib started with contributors from the `oemof developer group <https://github.com/orgs/oemof/teams/oemof-developer-group>`_ we use the same
65+
`developer rules <http://oemof.readthedocs.io/en/stable/developing_oemof.html>`_.
66+
67+
Citing the windpowerlib
68+
========================
69+
70+
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>`_.
71+
72+
License
73+
============
74+
75+
Copyright (C) 2017 oemof developing group
76+
77+
This program is free software: you can redistribute it and/or modify
78+
it under the terms of the GNU General Public License as published by
79+
the Free Software Foundation, either version 3 of the License, or
80+
(at your option) any later version.
81+
82+
This program is distributed in the hope that it will be useful,
83+
but WITHOUT ANY WARRANTY; without even the implied warranty of
84+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
85+
GNU General Public License for more details.
86+
87+
You should have received a copy of the GNU General Public License
88+
along with this program. If not, see http://www.gnu.org/licenses/.

doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Contents:
88
:glob:
99

1010
getting_started
11+
basic_example_notebook
1112
whats_new
12-
modules.rst
13+
modules
1314

1415

1516
Indices and tables

0 commit comments

Comments
 (0)