Skip to content

Commit 0a08db7

Browse files
committed
Remove unnecessary lines due to name changes
1 parent 55fb9f0 commit 0a08db7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

windpowerlib/wind_turbine.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,8 @@ def get_turbine_data_from_oedb(turbine_type, fetch_curve, overwrite=False):
310310
power curve values in W with the corresponding wind speeds in m/s.
311311
312312
"""
313-
# Set `curve` depending on `fetch_curve` to match names in oedb
314-
curve = ('cp_curve' if fetch_curve == 'power_coefficient_curve'
315-
else fetch_curve) # todo not needed anymore after OEP name changing
316313
filename = os.path.join(os.path.dirname(__file__), 'data',
317-
'oedb_{}s.csv'.format(curve)) # todo fetch_curve after the above was removed
314+
'oedb_{}s.csv'.format(fetch_curve))
318315
if not os.path.isfile(filename) or overwrite: # todo remove overwrite in 0.2.0
319316
# Load data from oedb and save to csv file
320317
load_turbine_data_from_oedb()

0 commit comments

Comments
 (0)