Skip to content

Commit 1046328

Browse files
fix jenkins wrong interpretation of type
1 parent b983c7d commit 1046328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

climada/hazard/tc_tracks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3034,8 +3034,9 @@ def compute_track_density(
30343034
"""
30353035

30363036
limit_ratio = 1.12 * 1.1 # record tc speed 112km/h -> 1.12°/h + 10% margin
3037+
time_value: float = tc_track.data[0].time_step[0].values # Type hint for jenkins
30373038

3038-
if tc_track.data[0].time_step[0].values > (res / limit_ratio):
3039+
if time_value > (res / limit_ratio):
30393040
warnings.warn(
30403041
"The time step is too big for the current resolution. For the desired resolution, \n"
30413042
f"apply a time step of {res/limit_ratio}h."

0 commit comments

Comments
 (0)