Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
59835c3
Add new whatsnew file and bumb version number to 0.2.2dev
uvchik Mar 9, 2021
15d877a
Fix: Updating turbine data in getting started
thesethtruth Aug 5, 2021
7177285
update documentation in readme
maurerle Nov 12, 2021
f74c20d
Merge pull request #117 from thesethtruth/patch-1
uvchik Nov 15, 2021
5881a8f
Merge pull request #118 from maurerle/patch-1
uvchik Jul 12, 2022
f1649e4
Clean examples
uvchik Apr 12, 2023
2c5af71
Merge branch 'dev' of github.com:wind-python/windpowerlib into dev
uvchik Apr 12, 2023
1c02305
Fix import of pandas testing
Jan 8, 2024
710847b
Only add curve data with unique wind speeds
Jan 8, 2024
ca9e464
Series.append is deprecated, use pd.concat instead
Jan 8, 2024
e963667
Fix error - float can only be applied to single element
Jan 8, 2024
3ce26c7
Make sure data is sorted, sort is now per default False
Jan 8, 2024
3df5e99
Change import of weather data due to deprecation of date_parser
Jan 8, 2024
8792488
Fix full load hours
Jan 10, 2024
4efa95c
Add github workflow for continuous testing
Jan 10, 2024
32fece2
Update tested and supported python versions
Jan 10, 2024
dafb8bc
Bug fix - cannot have uses and run key
Jan 10, 2024
64cb2d3
Make python versions strings so that python3.10 is recognised correctly
Jan 10, 2024
ea7e8a6
Fix missing conda installation
Jan 10, 2024
89c23c4
Fix import of modelchain_example - previous import fails when noteboo…
Jan 12, 2024
07649a9
Use pytest_notebook to test whether notebooks run without errors
Jan 12, 2024
1f48299
Fix tests - tests fail on windows as dtype on one side is np.int32 an…
Jan 12, 2024
a86b50f
Try fixing failing tests on windows - on windows dtype here is np.int…
Jan 12, 2024
bec03ad
Try fixing different index dtype - on windows dtype is int32 and on l…
Jan 12, 2024
b051746
Try fixing import error of example.modelchain_example when notebooks …
Jan 12, 2024
9aec02e
Fix test for windows - on windows dtype on the left is int64 and on t…
Jan 12, 2024
cac3187
Revert "Use pytest_notebook to test whether notebooks run without err…
Jan 12, 2024
4dd5858
Increase timeout to avoid error when tests are run on github
Jan 12, 2024
01be601
Not needed anymore as lower python versions are not supported anymore
Jan 12, 2024
f26de07
Change import back as tests fail now
Jan 12, 2024
5332a8e
Try setting directory to fix error for windows PermissionError: [Errn…
Jan 12, 2024
f275547
Try setting permissions to fix PermissionError
Jan 12, 2024
1d7055f
Comment other tests to run only windows tests
Jan 12, 2024
b668b70
Change permission
Jan 12, 2024
d45d448
Remove setting permissions again as it did not work correctly
Jan 12, 2024
028aa8d
Try workaround - don't import functions from external python file
Jan 12, 2024
4e9fd2c
Remove old imports
Jan 12, 2024
edc6862
Undo commenting linux tests
Jan 12, 2024
5f418bc
Use pytest-notebook again to avoid Permission denied error on windows
Jan 12, 2024
8d488a9
Update documentation
Jan 16, 2024
f5f3d8f
Add changes to whatsnew
Jan 16, 2024
d274ce6
Remove lower limit for pandas as it is not needed anymore
Jan 16, 2024
24be19d
Fixes #129 (#131)
sasanjac Jan 16, 2024
296e58e
Handle faulty turbine library data
Jan 30, 2024
ec6a637
Fix a typo in the examplem plots (#126)
fwitte Jan 30, 2024
b493bd6
add default_turbine_data to pip install package_data (#133)
maurerle Jan 31, 2024
99c58d5
Merge branch 'dev' into features/fix_and_add_automatic_tests
Jan 31, 2024
8a9a769
Add readthedocs.yml
Feb 1, 2024
649fca0
Add sphinx_rtd_theme to rtd requirements
Feb 1, 2024
285a96a
Remove asterisk
Feb 1, 2024
3a6ed88
Fix failing docstring test for NaN values in "has_cp_curve"
Feb 1, 2024
d57801e
Adapt test so that "oedb" is checked as well ("local" is checked in d…
Feb 1, 2024
b4db824
Move extracting curve data from oedb turbine library to own function …
Feb 9, 2024
5af422d
Merge pull request #136 from wind-python/features/fix_and_add_automat…
Feb 9, 2024
8bd75ab
Fix links to data
Feb 9, 2024
2aa2c8d
Update version number
Feb 9, 2024
be0e7cb
Try fixing indentation warnings in sphinx
Feb 9, 2024
e3ee59f
Fix indentation
Feb 9, 2024
10f8db4
Fix typo
Feb 9, 2024
15adc5a
Fix typo
Feb 9, 2024
a216a45
Fix indentation
Feb 9, 2024
101ed12
Fix sphinx warnings
Feb 20, 2024
b837f8b
Add sphinx to dev requirements and change to alphabetical order
Feb 20, 2024
d45c158
Set release date and add contributor
Feb 20, 2024
8f11ea4
Merge pull request #139 from wind-python/features/make_ready_for_rele…
Feb 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix indentation
  • Loading branch information
birgits
birgits committed Feb 9, 2024
commit a216a4584b0889b33db005c4d3003ed3db11e6fb
3 changes: 3 additions & 0 deletions windpowerlib/power_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _get_power_output(
wind_speed, power_curve_wind_speeds, density, power_curve_values
):
"""Get the power output at each timestep using only numpy to speed up performance

Parameters
----------
wind_speed : :numpy:`numpy.ndarray`
Expand All @@ -289,10 +290,12 @@ def _get_power_output(
power_curve_values : :numpy:`numpy.ndarray`
Power curve values corresponding to wind speeds in
`power_curve_wind_speeds`.

Returns
-------
:numpy:`numpy.array`
Electrical power output of the wind turbine in W.

"""
# Calculate the power curves for each timestep using vectors
# NOTE: power_curves_per_ts.shape = [len(wind_speed), len(density)]
Expand Down