Skip to content

Commit

Permalink
style fixes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander0042 authored and github-actions[bot] committed Nov 18, 2024
1 parent 55c8b9a commit 9036800
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions API/responseLocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9036800

Please sign in to comment.