Skip to content

Commit 0dd6ce0

Browse files
committed
Try int instead of round for python 3.6 issue on travis
1 parent d0a9215 commit 0dd6ce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windpowerlib/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def linear_interpolation_extrapolation(df, target_height):
6262
... np.array([10, 80])])
6363
>>> value = linear_interpolation_extrapolation(
6464
... weather_df['wind_speed'], 100)[0]
65-
>>> round(value * 100) / 100
66-
6.86
65+
>>> int(value * 1000) / 1000
66+
6.857
6767
6868
"""
6969
# find closest heights

0 commit comments

Comments
 (0)