Browse Source

handle invalid precision

Xi Ruoyao 4 years ago
parent
commit
09653ee961
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data.py

+ 2 - 2
data.py

@@ -6,7 +6,7 @@ def have_location(x):
     return x.lat != None and x.lon != None
 
 def maybe_entry(x):
-    return x.eig < 5 and x.prec > 40
+    return x.eig < 5 and (x.prec > 40 or x.prec < 0)
 
 def maybe_indoor(x):
-    return x.eig < 1 and x.prec > 400
+    return x.eig < 1 and (x.prec > 400 or x.prec < 0)