Skip to content

Commit 98d8acc

Browse files
committed
Fix style issues
1 parent 002628b commit 98d8acc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

windpowerlib/wind_turbine.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,9 @@ def get_turbine_data_from_file(turbine_type, path):
378378
--------
379379
>>> from windpowerlib import wind_turbine
380380
>>> import os
381-
>>> path=os.path.join(os.path.dirname(__file__), '../tests/data',
381+
>>> my_path = os.path.join(os.path.dirname(__file__), '../tests/data',
382382
... 'power_curves.csv')
383-
>>> d3=get_turbine_data_from_file('DUMMY 3', path)
383+
>>> d3 = get_turbine_data_from_file('DUMMY 3', my_path)
384384
>>> print(d3['value'][7])
385385
18000.0
386386
>>> print(d3['value'].max())
@@ -578,14 +578,14 @@ def get_turbine_types(turbine_library="local", print_out=True, filter_=True):
578578
Examples
579579
--------
580580
>>> from windpowerlib import wind_turbine
581-
>>> df=wind_turbine.get_turbine_types(print_out=False)
582-
>>> print(df[df["turbine_type"].str.contains("E-126")].iloc[0])
581+
>>> my_df=wind_turbine.get_turbine_types(print_out=False)
582+
>>> print(my_df[my_df["turbine_type"].str.contains("E-126")].iloc[0])
583583
manufacturer Enercon
584584
turbine_type E-126/4200
585585
has_power_curve True
586586
has_cp_curve True
587587
Name: 5, dtype: object
588-
>>> print(df[df["manufacturer"].str.contains("Enercon")].iloc[0])
588+
>>> print(my_df[my_df["manufacturer"].str.contains("Enercon")].iloc[0])
589589
manufacturer Enercon
590590
turbine_type E-101/3050
591591
has_power_curve True

0 commit comments

Comments
 (0)