We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3de084 commit 870ec7cCopy full SHA for 870ec7c
climada/hazard/tc_tracks.py
@@ -3029,7 +3029,7 @@ def compute_track_density(
3029
3030
limit_ratio = 1.12 * 1.1 # record tc speed 112km/h -> 1.12°/h + 10% margin
3031
3032
- 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:
3033
warnings.warn(
3034
"The time step is too big for the current resolution. For the desired resolution, \n"
3035
f"apply a time step of {res/limit_ratio}h."
0 commit comments