File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments