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 1190788 commit fabe1e2Copy full SHA for fabe1e2
windpowerlib/data.py
@@ -224,6 +224,7 @@ def store_turbine_data_from_oedb(
224
if curve_type == "power_curve":
225
curves_df *= 1000
226
curves_df.index.name = "turbine_type"
227
+ curves_df.sort_index(inplace=True)
228
curves_df.to_csv(filename.format("{}s".format(curve_type)))
229
230
# get turbine data and save to file (excl. curves)
@@ -240,6 +241,7 @@ def store_turbine_data_from_oedb(
240
241
).set_index("turbine_type")
242
# nominal power in W
243
turbine_data_df["nominal_power"] *= 1000
244
+ turbine_data_df.sort_index(inplace=True)
245
turbine_data_df.to_csv(filename.format("turbine_data"))
246
check_turbine_data(filename)
247
return turbine_data
0 commit comments