From ec4a819df4781173bb398090109b4f289b2dcad9 Mon Sep 17 00:00:00 2001 From: Nicolas Colombi Date: Wed, 12 Feb 2025 09:54:16 +0100 Subject: [PATCH] fix pylint f string --- climada/hazard/tc_tracks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/climada/hazard/tc_tracks.py b/climada/hazard/tc_tracks.py index bd9af7676..6bf65e980 100644 --- a/climada/hazard/tc_tracks.py +++ b/climada/hazard/tc_tracks.py @@ -2918,10 +2918,10 @@ def compute_track_density( if tc_track.data[0].time_step[0].item() > res / limit_ratio: warnings.warn( - f"The time step is too big. For the desired resolution, apply a time step \n" - "of {res/limit_ratio}h." + "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.01: + elif 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°."