@@ -202,15 +202,15 @@ def get_turbine_data_from_file(turbine_type, file_):
202202
203203 Parameters
204204 ----------
205- turbine_type : string
205+ turbine_type : str
206206 Specifies the turbine type data is fetched for.
207- file_ : string
207+ file_ : str
208208 Specifies the source of the turbine data.
209209 See the example below for how to use the example data.
210210
211211 Returns
212212 -------
213- Tuple (pandas.DataFrame, float)
213+ tuple (pandas.DataFrame, float)
214214 Power curve or power coefficient curve (pandas.DataFrame) and nominal
215215 power (float). Power (coefficient) curve DataFrame contains power
216216 coefficient curve values (dimensionless) or power curve values in W
@@ -279,31 +279,31 @@ def isfloat(x):
279279
280280def get_turbine_data_from_oedb (turbine_type , fetch_curve , overwrite = False ):
281281 r"""
282- Fetches wind turbine data from the OpenEnergy Database (oedb).
282+ Fetches wind turbine data from the OpenEnergy database (oedb).
283283
284284 If turbine data exists in local repository it is loaded from this file. The
285- file is created when turbine data was loaded from oedb in
285+ file is created when turbine data is loaded from oedb in
286286 :py:func:`~.load_turbine_data_from_oedb`. Use this function with
287287 `overwrite=True` to overwrite your file with newly fetched data.
288288
289289 Parameters
290290 ----------
291- turbine_type : string
291+ turbine_type : str
292292 Specifies the turbine type data is fetched for.
293293 Use :py:func:`~.get_turbine_types` to see a table of all wind turbines
294294 in oedb containing information about whether power (coefficient) curve
295295 data is provided.
296- fetch_curve : string
296+ fetch_curve : str
297297 Parameter to specify whether a power or power coefficient curve
298298 should be retrieved from the provided turbine data. Valid options are
299299 'power_curve' and 'power_coefficient_curve'. Default: None.
300- overwrite : boolean
301- If True local file is overwritten by newly fetch data from oedb, if
300+ overwrite : bool
301+ If True local file is overwritten by newly fetched data from oedb, if
302302 False turbine data is fetched from previously saved file.
303303
304304 Returns
305305 -------
306- Tuple (pandas.DataFrame, float)
306+ tuple (pandas.DataFrame, float)
307307 Power curve or power coefficient curve (pandas.DataFrame) and nominal
308308 power (float) of one wind turbine type. Power (coefficient) curve
309309 DataFrame contains power coefficient curve values (dimensionless) or
@@ -317,7 +317,7 @@ def get_turbine_data_from_oedb(turbine_type, fetch_curve, overwrite=False):
317317 load_turbine_data_from_oedb ()
318318 else :
319319 logging .debug ("Turbine data is fetched from {}" .format (filename ))
320- # turbine_data = pd.read_csv(filename, index_col=0)
320+ # turbine_data = pd.read_csv(filename, index_col=0)
321321 df , nominal_power = get_turbine_data_from_file (turbine_type = turbine_type ,
322322 file_ = filename )
323323
@@ -331,15 +331,15 @@ def get_turbine_data_from_oedb(turbine_type, fetch_curve, overwrite=False):
331331
332332def load_turbine_data_from_oedb ():
333333 r"""
334- Loads turbine data from the OpenEnergy Database (oedb).
334+ Loads turbine data from the OpenEnergy database (oedb).
335335
336336 Turbine data is saved to csv files ('oedb_power_curves.csv' and
337- 'oedb_cp_curves .csv') for offline usage of windpowerlib. If the files
338- already exist they are overwritten.
337+ 'oedb_power_coefficient_curves .csv') for offline usage of windpowerlib.
338+ If the files already exist they are overwritten.
339339
340340 Returns
341341 -------
342- turbine_data : pd.DataFrame
342+ pd.DataFrame
343343 Contains turbine data of different turbines such as 'manufacturer',
344344 'turbine_type', 'nominal_power'.
345345
@@ -356,7 +356,7 @@ def load_turbine_data_from_oedb():
356356 if not result .status_code == 200 :
357357 raise ConnectionError ("Database connection not successful. "
358358 "Response: [{}]" .format (result .status_code ))
359- # extract data to data frame
359+ # extract data to dataframe
360360 turbine_data = pd .DataFrame (result .json ())
361361 # standard file name for saving data
362362 filename = os .path .join (os .path .dirname (__file__ ), 'data' ,
@@ -392,7 +392,7 @@ def load_turbine_data_from_oedb():
392392
393393def get_turbine_types (print_out = True , filter_ = True ):
394394 r"""
395- Get all wind turbine types provided in the OpenEnergy Data Base (oedb).
395+ Get all wind turbine types provided in the OpenEnergy database (oedb).
396396
397397 By default only turbine types for which a power coefficient curve or power
398398 curve is provided are returned. Set `filter_=False` to see all turbine
@@ -401,20 +401,20 @@ def get_turbine_types(print_out=True, filter_=True):
401401
402402 Parameters
403403 ----------
404- print_out : boolean
404+ print_out : bool
405405 Directly prints a tabular containing the turbine types in column
406406 'turbine_type', the manufacturer in column 'manufacturer' and
407407 information about whether a power (coefficient) curve exists (True) or
408408 not (False) in columns 'has_power_curve' and 'has_cp_curve'.
409409 Default: True.
410- filter_ : boolean
410+ filter_ : bool
411411 If True only turbine types for which a power coefficient curve or
412- power curve is provided in the OpenEnergy Data Base (oedb) are
412+ power curve is provided in the OpenEnergy database (oedb) are
413413 returned. Default: True.
414414
415415 Returns
416416 -------
417- curves_df : pd.DataFrame
417+ pd.DataFrame
418418 Contains turbine types in column 'turbine_type', the manufacturer in
419419 column 'manufacturer' and information about whether a power
420420 (coefficient) curve exists (True) or not (False) in columns
0 commit comments