From 9919d1122cb7875df7968a93a3c2be19d2bb93bf Mon Sep 17 00:00:00 2001 From: Nicolas Colombi <115944312+NicolasColombi@users.noreply.github.com> Date: Tue, 18 Feb 2025 13:26:05 +0100 Subject: [PATCH] Update tc_tracks.py --- climada/hazard/tc_tracks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/climada/hazard/tc_tracks.py b/climada/hazard/tc_tracks.py index 4fadcfc4a..460e5c223 100644 --- a/climada/hazard/tc_tracks.py +++ b/climada/hazard/tc_tracks.py @@ -3029,12 +3029,12 @@ def compute_track_density( limit_ratio = 1.12 * 1.1 # record tc speed 112km/h -> 1.12°/h + 10% margin - 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." - ) - elif res < 0.1: + #if 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." + #) + if res < 0.1: warnings.warn( "The resolution is too high. The computation might take several minutes \n" "to hours. Consider using a resolution below 0.1°."