Skip to content

Commit f1b5cb7

Browse files
committed
Store turbine library in oedb directory
1 parent f474915 commit f1b5cb7

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
@@ -259,7 +259,7 @@ def get_turbine_data_from_file(turbine_type, path):
259259
return wpp_df
260260

261261

262-
def load_turbine_data_from_oedb(schema = 'supply', table = 'turbine_library'):
262+
def load_turbine_data_from_oedb(schema='supply', table='turbine_library'):
263263
r"""
264264
Loads turbine library from the OpenEnergy database (oedb).
265265
@@ -294,7 +294,7 @@ def load_turbine_data_from_oedb(schema = 'supply', table = 'turbine_library'):
294294
# extract data to dataframe
295295
turbine_data = pd.DataFrame(result.json())
296296
# standard file name for saving data
297-
filename = os.path.join(os.path.dirname(__file__),
297+
filename = os.path.join(os.path.dirname(__file__), 'oedb',
298298
'{}.csv')
299299
# get all power (coefficient) curves and save to file
300300
# for curve_type in ['power_curve', 'power_coefficient_curve']:

0 commit comments

Comments
 (0)