Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Dec 13, 2024
1 parent 307ef3b commit b7ae7cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions climada_petals/hazard/tc_rainfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ def _windprofile(
si_track = si_track.copy(deep=True)
si_track["cp"].values[:] = 5e-5
return compute_angular_windspeeds(
si_track, d_centr, mask_centr_close, model, model_kwarg=dict(cyclostrophic=cyclostrophic),
si_track, d_centr, mask_centr_close, model, model_kwargs=dict(cyclostrophic=cyclostrophic),

Check warning on line 1324 in climada_petals/hazard/tc_rainfield.py

View check run for this annotation

Jenkins - WCR / Pylint

use-dict-literal

LOW: Consider using '{"cyclostrophic": cyclostrophic}' instead of a call to 'dict'.
Raw output
no description found
)

def _w_shear(
Expand Down Expand Up @@ -1527,7 +1527,7 @@ def _w_frict_stretch(
d_centr[f"{rstep}h"] * (
si_track["cp"].values[:, None]
+ (1 if rstep == "+" else -1) * (
h_winds[f"r{rstep},t"] - h_winds[f"r,t"]
h_winds[f"r{rstep},t"] - h_winds["r,t"]
) / res_radial_m
) + h_winds[f"r{rstep}h,t"]
)
Expand Down Expand Up @@ -1660,7 +1660,7 @@ def _qs_from_t_diff_level(
)

# solve `s_out(T_out) - s_in = 0` using the Newton-Raphson method
for it in range(max_iter):
for _ in range(max_iter):
# compute new estimate of r_out from current estimate of T_out
r_out[mask], drdT = _r_from_t_same_level(
pres_out, temps_out[mask], gradient=True, **r_from_t_kwargs,
Expand Down

0 comments on commit b7ae7cb

Please sign in to comment.