Skip to content

Commit 12b0578

Browse files
Birgit SchachlerBirgit Schachler
authored andcommitted
Convert nominal power and p_values in fetch_turbine_data to watt
1 parent 3c98e44 commit 12b0578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windpowerlib/wind_turbine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ def restructure_data():
163163
data = np.delete(data, 0, 0)
164164
df = pd.DataFrame(data, columns=['v_wind', self.fetch_curve])
165165
df.set_index('v_wind', drop=True, inplace=True)
166-
nominal_power = wpp_df['p_nom'].iloc[0]
166+
nominal_power = wpp_df['p_nom'].iloc[0] * 1000.0
167167
return df, nominal_power
168168
if self.fetch_curve == 'p':
169169
filename = 'p_curves.csv'
170170
p_values, p_nom = restructure_data()
171-
self.p_values = p_values
171+
self.p_values = p_values * 1000.0
172172
else:
173173
filename = 'cp_curves.csv'
174174
self.cp_values, p_nom = restructure_data()

0 commit comments

Comments
 (0)