Skip to content

Commit 89c0fdc

Browse files
committed
Adapt docstrings
1 parent ce65a8b commit 89c0fdc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

windpowerlib/wind_farm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class WindFarm(object):
9393
>>> example_farm = wind_farm.WindFarm(**example_farm_data)
9494
>>> print(example_farm.nominal_power)
9595
31200000.0
96-
>>> # turbine fleet as list of WindTurbine using the 'to_group' method.
96+
>>> # turbine fleet as a list of WindTurbineGroup namedtuples using the
97+
>>> # 'to_group' method.
9798
>>> wind_turbine_fleet = [e126.to_group(number_turbines=5),
9899
... e126.to_group(),
99100
... v90.to_group(total_capacity=3 * 2e6)]

windpowerlib/wind_turbine.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ def to_group(self, number_turbines=None, total_capacity=None):
237237
3.5
238238
>>> e126.to_group(total_capacity=12600000).wind_turbine.nominal_power
239239
4200000.0
240+
>>> e126.to_group(5)
241+
WindTurbineGroup(wind_turbine=Wind turbine: E-126/4200 ['nominal\
242+
power=4200000.0 W', 'hub height=135 m', 'rotor diameter=127.0 m',\
243+
'power_coefficient_curve=True', 'power_curve=True'], number_of_turbines=5)
240244
"""
241245
if number_turbines is not None and total_capacity is not None:
242246
raise ValueError("The 'number' and the 'total_capacity parameter "

0 commit comments

Comments
 (0)