Skip to content

Commit

Permalink
Fixing style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stickler-ci committed May 29, 2020
1 parent 4c48478 commit 7f9d8bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions tests/test_data_handling.py
Expand Up @@ -12,8 +12,11 @@
import pytest

from windpowerlib.data import (
check_data_integrity, check_imported_data, get_turbine_types,
store_turbine_data_from_oedb)
check_data_integrity,
check_imported_data,
get_turbine_types,
store_turbine_data_from_oedb,
)


class TestDataCheck:
Expand Down
5 changes: 4 additions & 1 deletion tests/test_wind_turbine.py
Expand Up @@ -11,7 +11,10 @@

from windpowerlib.tools import WindpowerlibUserWarning
from windpowerlib.wind_turbine import (
WindTurbine, WindTurbineGroup, get_turbine_data_from_file)
WindTurbine,
WindTurbineGroup,
get_turbine_data_from_file,
)


class TestWindTurbine:
Expand Down
6 changes: 4 additions & 2 deletions windpowerlib/data.py
Expand Up @@ -294,8 +294,10 @@ def check_imported_data(data, filename, time_stamp):
def check_data_integrity(data, min_pc_length=5):
for data_set in data.iterrows():
wt_type = data_set[0]
enercon_e126 = {"turbine_type": "{0}".format(wt_type),
"hub_height": 135}
enercon_e126 = {
"turbine_type": "{0}".format(wt_type),
"hub_height": 135,
}
with warnings.catch_warnings():
warnings.simplefilter("ignore")
wt = WindTurbine(**enercon_e126)
Expand Down

0 comments on commit 7f9d8bb

Please sign in to comment.