From cb7835c3e9a0e98865f672d2f79a6ef124de075e Mon Sep 17 00:00:00 2001 From: a3eille <146197392+a3eille@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:02:40 +0100 Subject: [PATCH] corrected ambiguous if statement --- titantuner/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titantuner/app.py b/titantuner/app.py index 5393307..7ef71d3 100644 --- a/titantuner/app.py +++ b/titantuner/app.py @@ -537,7 +537,7 @@ def apply_test(self): self.last_lonrange = self.ui["lonrange"].value yy = self.lat2y(self.lats) xx = self.lon2x(self.lons) - if(not xx): + if(not len(xx)>0): self.set_apply_button() raise ValueError("Please select a valid dataset!") values_to_test = self.values