Skip to content

Commit 1ac4de2

Browse files
authored
Update coloredlogs requirement (#939)
1 parent 5ea0c56 commit 1ac4de2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

floris/optimization/yaw_optimization/yaw_optimization_tools.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ def wake_profile_ub_turbii(x):
7676
y = (y0 + D[ii]) + (x - x0) * wake_slope
7777
if isinstance(y, (float, np.float64, np.float32)):
7878
if x < (x0 + 0.01):
79-
y = -np.Inf
79+
y = -np.inf
8080
else:
81-
y[x < x0 + 0.01] = -np.Inf
81+
y[x < x0 + 0.01] = -np.inf
8282
return y
8383

8484
def wake_profile_lb_turbii(x):
8585
y = (y0 - D[ii]) - (x - x0) * wake_slope
8686
if isinstance(y, (float, np.float64, np.float32)):
8787
if x < (x0 + 0.01):
88-
y = -np.Inf
88+
y = -np.inf
8989
else:
90-
y[x < x0 + 0.01] = -np.Inf
90+
y[x < x0 + 0.01] = -np.inf
9191
return y
9292

9393
def determine_if_in_wake(xt, yt):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"shapely~=2.0",
2828

2929
# utilities
30-
"coloredlogs~=10.0",
30+
"coloredlogs~=15.0",
3131
]
3232

3333
# What packages are optional?

0 commit comments

Comments
 (0)