Skip to content

Commit 7d51b36

Browse files
committed
Fix changed import for weather data check
1 parent 44f852d commit 7d51b36

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

windpowerlib/modelchain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"""
99
import logging
1010
import pandas as pd
11-
from windpowerlib import wind_speed, density, temperature, power_output, tools
11+
from windpowerlib import (wind_speed, density, temperature, power_output,
12+
tools, data)
1213

1314

1415
class ModelChain(object):
@@ -510,7 +511,7 @@ def run_model(self, weather_df):
510511
'wind_speed'
511512
512513
"""
513-
weather_df = tools.check_weather_data(weather_df)
514+
weather_df = data.check_weather_data(weather_df)
514515

515516
wind_speed_hub = self.wind_speed_hub(weather_df)
516517
density_hub = (

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import logging
1111
import pandas as pd
1212
from windpowerlib import wake_losses
13-
from windpowerlib.modelchain import ModelChain, tools
13+
from windpowerlib.modelchain import ModelChain, data
1414

1515

1616
class TurbineClusterModelChain(ModelChain):
@@ -289,7 +289,7 @@ def run_model(self, weather_df):
289289
'wind_speed'
290290
291291
"""
292-
weather_df = tools.check_weather_data(weather_df)
292+
weather_df = data.check_weather_data(weather_df)
293293

294294
self.assign_power_curve(weather_df)
295295
self.power_plant.mean_hub_height()

0 commit comments

Comments
 (0)