We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0cdf8 commit 1128ec6Copy full SHA for 1128ec6
windpowerlib/wind_turbine.py
@@ -132,6 +132,19 @@ def fetch_turbine_data(self):
132
"""
133
134
def restructure_data():
135
+ r"""
136
+ Restructures data read from a csv file.
137
+
138
+ Method creates a two-dimensional DataFrame containing the power
139
+ coefficient curve or power curve of the requested wind turbine.
140
141
+ Returns
142
+ -------
143
+ Tuple (pd.DataFrame, float)
144
+ Power curve or power coefficient curve (pd.DataFrame)
145
+ and nominal power (float).
146
147
+ """
148
df = read_turbine_data(filename=filename)
149
wpp_df = df[df.turbine_id == self.turbine_name]
150
if wpp_df.shape[0] == 0:
0 commit comments