Skip to content

Commit

Permalink
Update tc_tracks.py
Browse files Browse the repository at this point in the history
float issue jenkins
  • Loading branch information
NicolasColombi authored Feb 18, 2025
1 parent f3de084 commit 870ec7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/hazard/tc_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3029,7 +3029,7 @@ def compute_track_density(

limit_ratio = 1.12 * 1.1 # record tc speed 112km/h -> 1.12°/h + 10% margin

if tc_track.data[0].time_step[0].item() > res / limit_ratio:
if float(tc_track.data[0].time_step[0].item()) > res / limit_ratio:
warnings.warn(
"The time step is too big for the current resolution. For the desired resolution, \n"
f"apply a time step of {res/limit_ratio}h."
Expand Down

0 comments on commit 870ec7c

Please sign in to comment.