Skip to content

Commit 24be19d

Browse files
authored
Fixes #129 (#131)
1 parent 2c5af71 commit 24be19d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

windpowerlib/wind_turbine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class WindTurbine(object):
7878
corresponding power curve value in W. Default: None.
7979
nominal_power : None or float
8080
The nominal output of the wind turbine in W. Default: None.
81-
81+
8282
Notes
8383
------
8484
Your wind turbine object needs to have a power coefficient or power curve.
@@ -170,9 +170,9 @@ def __init__(
170170
logging.debug(msg.format(self.turbine_type))
171171

172172
if self.nominal_power is None and turbine_data is not None:
173-
self.nominal_power = float(turbine_data["nominal_power"])
173+
self.nominal_power = float(turbine_data["nominal_power"].iloc[0])
174174
if self.rotor_diameter is None and turbine_data is not None:
175-
self.rotor_diameter = float(turbine_data["rotor_diameter"])
175+
self.rotor_diameter = float(turbine_data["rotor_diameter"].iloc[0])
176176

177177
if self.rotor_diameter:
178178
if self.hub_height <= 0.5 * self.rotor_diameter:

0 commit comments

Comments
 (0)