Skip to content

Commit

Permalink
Merge 545d49a into 1190788
Browse files Browse the repository at this point in the history
  • Loading branch information
uvchik committed Nov 27, 2020
2 parents 1190788 + 545d49a commit bd7c32b
Show file tree
Hide file tree
Showing 7 changed files with 452 additions and 450 deletions.
2 changes: 2 additions & 0 deletions windpowerlib/data.py
Expand Up @@ -224,6 +224,7 @@ def store_turbine_data_from_oedb(
if curve_type == "power_curve":
curves_df *= 1000
curves_df.index.name = "turbine_type"
curves_df.sort_index(inplace=True)
curves_df.to_csv(filename.format("{}s".format(curve_type)))

# get turbine data and save to file (excl. curves)
Expand All @@ -240,6 +241,7 @@ def store_turbine_data_from_oedb(
).set_index("turbine_type")
# nominal power in W
turbine_data_df["nominal_power"] *= 1000
turbine_data_df.sort_index(inplace=True)
turbine_data_df.to_csv(filename.format("turbine_data"))
check_turbine_data(filename)
return turbine_data
Expand Down
70 changes: 35 additions & 35 deletions windpowerlib/data/default_turbine_data/power_coefficient_curves.csv

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions windpowerlib/data/default_turbine_data/power_curves.csv

Large diffs are not rendered by default.

282 changes: 141 additions & 141 deletions windpowerlib/data/default_turbine_data/turbine_data.csv

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions windpowerlib/oedb/power_coefficient_curves.csv

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions windpowerlib/oedb/power_curves.csv

Large diffs are not rendered by default.

282 changes: 141 additions & 141 deletions windpowerlib/oedb/turbine_data.csv

Large diffs are not rendered by default.

0 comments on commit bd7c32b

Please sign in to comment.