diff --git a/src/analysis/deb_algorithm.py b/src/analysis/deb_algorithm.py index 315866e6..9f251516 100644 --- a/src/analysis/deb_algorithm.py +++ b/src/analysis/deb_algorithm.py @@ -198,6 +198,12 @@ def get_deb_accuracy(city_name): if deb_pred is None or actual is None: continue + try: + deb_pred = float(deb_pred) + actual = float(actual) + except: + continue + total += 1 deb_wu = round(deb_pred) actual_wu = round(actual)