Skip to content

Commit 870ec7c

Browse files
Update tc_tracks.py
float issue jenkins
1 parent f3de084 commit 870ec7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/hazard/tc_tracks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3029,7 +3029,7 @@ def compute_track_density(
30293029

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

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

0 commit comments

Comments
 (0)