Skip to content

Commit e93807d

Browse files
committed
Change .isnull().all() to "is None" to make numpy.arrays possible
1 parent db6cc42 commit e93807d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windpowerlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def v_wind_hub(self, weather, data_height):
228228
# Calculation of wind speed in m/s at hub height.
229229
elif self.wind_model == 'logarithmic':
230230
logging.debug('Calculating v_wind using logarithmic wind profile.')
231-
if weather['v_wind_2'].isnull().all():
231+
if weather['v_wind_2'] is None:
232232
v_wind = wind_speed.logarithmic_wind_profile(
233233
weather['v_wind'], data_height['v_wind'],
234234
self.wind_turbine.hub_height,

0 commit comments

Comments
 (0)