Skip to content

Commit dd8011d

Browse files
committed
Fix style issues
1 parent 3e02344 commit dd8011d

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

windpowerlib/modelchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
SPDX-License-Identifier: MIT
88
"""
99
import logging
10-
import pandas as pd
1110
from windpowerlib import (
1211
wind_speed,
1312
density,
@@ -501,7 +500,7 @@ def run_model(self, weather_df):
501500
---------
502501
>>> import numpy as np
503502
>>> import pandas as pd
504-
>>> weather_df=pd.DataFrame(np.random.rand(2,6),
503+
>>> my_weather_df = pd.DataFrame(np.random.rand(2,6),
505504
... index=pd.date_range('1/1/2012',
506505
... periods=2,
507506
... freq='H'),
@@ -513,7 +512,7 @@ def run_model(self, weather_df):
513512
... 'roughness_length']),
514513
... np.array([10, 80, 10, 80,
515514
... 10, 0])])
516-
>>> weather_df.columns.get_level_values(0)[0]
515+
>>> my_weather_df.columns.get_level_values(0)[0]
517516
'wind_speed'
518517
519518
"""

windpowerlib/tools.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
SPDX-License-Identifier: MIT
77
"""
88
import numpy as np
9-
import warnings
10-
import pandas as pd
119

1210

1311
class WindpowerlibUserWarning(UserWarning):

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
SPDX-License-Identifier: MIT
99
"""
1010
import logging
11-
import pandas as pd
1211
from windpowerlib import wake_losses
1312
from windpowerlib.modelchain import ModelChain, data
1413

@@ -273,7 +272,7 @@ def run_model(self, weather_df):
273272
---------
274273
>>> import numpy as np
275274
>>> import pandas as pd
276-
>>> weather_df=pd.DataFrame(np.random.rand(2,6),
275+
>>> my_weather_df = pd.DataFrame(np.random.rand(2,6),
277276
... index=pd.date_range('1/1/2012',
278277
... periods=2,
279278
... freq='H'),
@@ -285,7 +284,7 @@ def run_model(self, weather_df):
285284
... 'roughness_length']),
286285
... np.array([10, 80, 10, 80,
287286
... 10, 0])])
288-
>>> weather_df.columns.get_level_values(0)[0]
287+
>>> my_weather_df.columns.get_level_values(0)[0]
289288
'wind_speed'
290289
291290
"""

0 commit comments

Comments
 (0)