Skip to content

Commit

Permalink
corrected ambiguous if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
a3eille committed Dec 2, 2024
1 parent 5c9a50c commit cb7835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion titantuner/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb7835c

Please sign in to comment.