Skip to content

Commit 55f26c1

Browse files
vezelibirgits
authored andcommitted
Fix license inconsistency (#79)
* Fix license inconsistency * Add SPDX licence information to each file * Add dual license for examples (tutorials)
1 parent 976bc48 commit 55f26c1

30 files changed

+111
-75
lines changed

example/modelchain_example.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>\n",
8+
"\n",
9+
"SPDX-License-Identifier: MIT\n",
10+
"\n",
11+
"SPDX-License-Identifier: CC-BY-4.0"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -25,9 +36,6 @@
2536
"metadata": {},
2637
"outputs": [],
2738
"source": [
28-
"__copyright__ = \"Copyright oemof developer group\"\n",
29-
"__license__ = \"GPLv3\"\n",
30-
"\n",
3139
"import os\n",
3240
"import pandas as pd\n",
3341
"\n",
@@ -567,7 +575,7 @@
567575
"name": "python",
568576
"nbconvert_exporter": "python",
569577
"pygments_lexer": "ipython3",
570-
"version": "3.6.7"
578+
"version": "3.6.8"
571579
}
572580
},
573581
"nbformat": 4,

example/modelchain_example.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
you need to specify your wind turbine, and in the last step call the
1111
windpowerlib functions to calculate the feed-in time series.
1212
13-
13+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
14+
SPDX-License-Identifier: MIT
1415
"""
15-
16-
__copyright__ = "Copyright oemof developer group"
17-
__license__ = "GPLv3"
18-
1916
import os
2017
import pandas as pd
2118

example/test_examples.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
"""
5+
16
import os
27
import subprocess
38
import tempfile

example/turbine_cluster_modelchain_example.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>\n",
8+
"\n",
9+
"SPDX-License-Identifier: MIT\n",
10+
"\n",
11+
"SPDX-License-Identifier: CC-BY-4.0"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},
@@ -26,9 +37,6 @@
2637
"metadata": {},
2738
"outputs": [],
2839
"source": [
29-
"__copyright__ = \"Copyright oemof developer group\"\n",
30-
"__license__ = \"GPLv3\"\n",
31-
"\n",
3240
"import pandas as pd\n",
3341
"\n",
3442
"import modelchain_example as mc_e\n",
@@ -342,7 +350,7 @@
342350
"name": "python",
343351
"nbconvert_exporter": "python",
344352
"pygments_lexer": "ipython3",
345-
"version": "3.6.7"
353+
"version": "3.6.8"
346354
}
347355
},
348356
"nbformat": 4,

example/turbine_cluster_modelchain_example.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
Functions that are used in the ``modelchain_example``, like the initialization
88
of wind turbines, are imported and used without further explanations.
99
10+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
11+
SPDX-License-Identifier: MIT
1012
"""
11-
12-
__copyright__ = "Copyright oemof developer group"
13-
__license__ = "GPLv3"
14-
1513
import pandas as pd
1614

1715
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read(fname):
1212
url='http://github.com/wind-python/windpowerlib',
1313
author='oemof developer group',
1414
author_email='[email protected]',
15-
license=None,
15+
license='MIT',
1616
packages=['windpowerlib'],
1717
package_data={
1818
'windpowerlib': [os.path.join('data', '*.csv'),

tests/test_density.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
"""
5+
16
import pandas as pd
27
import numpy as np
38
from pandas.util.testing import assert_series_equal

tests/test_modelchain.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""
22
Testing the ``modelchain`` module.
3-
"""
4-
5-
__copyright__ = "Copyright oemof developer group"
6-
__license__ = "GPLv3"
73
4+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
5+
SPDX-License-Identifier: MIT
6+
"""
87
import pandas as pd
98
import numpy as np
109
import pytest
@@ -341,4 +340,4 @@ def test_modelchain_with_power_coefficient_curve_as_dict(self):
341340
test_mc = mc.ModelChain(wt.WindTurbine(**my_turbine),
342341
power_output_model='power_coefficient_curve')
343342
test_mc.run_model(self.weather_df)
344-
assert_series_equal(test_mc.power_output, power_output_exp)
343+
assert_series_equal(test_mc.power_output, power_output_exp)

tests/test_power_curves.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
"""
5+
16
import pandas as pd
27
import numpy as np
38
import pytest

tests/test_power_output.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
SPDX-FileCopyrightText: 2019 oemof developer group <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
"""
5+
16
import pandas as pd
27
import numpy as np
38
import pytest

0 commit comments

Comments
 (0)