From 9036800bbd20384a41f22cc819e5ad2381b49dad Mon Sep 17 00:00:00 2001 From: alexander0042 Date: Mon, 18 Nov 2024 18:54:49 +0000 Subject: [PATCH] style fixes by ruff --- API/responseLocal.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/API/responseLocal.py b/API/responseLocal.py index 0c5bfc7..c9654ac 100644 --- a/API/responseLocal.py +++ b/API/responseLocal.py @@ -2658,11 +2658,10 @@ async def PW_Forecast( ) InterPhour[:, 6] = ( (InterPhour[:, 5] - 273.15) - + 0.33 * e - - 0.70 * (InterPhour[:, 10] / windUnit) - - 4.00 - ) + 273.15 - + + 0.33 * e + - 0.70 * (InterPhour[:, 10] / windUnit) + - 4.00 + ) + 273.15 ### Feels Like Temperature AppTemperatureHour = np.full((len(hour_array_grib), 2), np.nan) @@ -3566,14 +3565,21 @@ async def PW_Forecast( # https: // github.com / breezy - weather / breezy - weather / discussions / 1085 # AT = Ta + 0.33 × (rh / 100 × 6.105 × exp(17.27 × Ta / (237.7 + Ta))) − 0.70 × ws − 4.00 - eCurrent = InterPcurrent[7] * \ - 6.105 * np.exp( - 17.27 * (InterPcurrent[4] - 273.15) / (237.7 + (InterPcurrent[4] - 273.15))) + eCurrent = ( + InterPcurrent[7] + * 6.105 + * np.exp( + 17.27 * (InterPcurrent[4] - 273.15) / (237.7 + (InterPcurrent[4] - 273.15)) + ) + ) + + InterPcurrent[5] = ( + (InterPcurrent[4] - 273.15) + + 0.33 * eCurrent + - 0.70 * (InterPcurrent[10] / windUnit) + - 4.00 + ) + 273.15 - InterPcurrent[5] = ((InterPcurrent[4] - 273.15) + 0.33 * eCurrent - 0.70 * \ - (InterPcurrent[10] / windUnit) - 4.00) + 273.15 - - # Where Ta is the ambient temperature in °C # e is the water vapor pressure in hPa # ws is the wind speed in m/s