Browse Source

ignore entires with illegal yaw angle

Xi Ruoyao 4 years ago
parent
commit
db6ba90a62
1 changed files with 4 additions and 1 deletions
  1. 4 1
      csv_parser.py

+ 4 - 1
csv_parser.py

@@ -52,7 +52,10 @@ def parse_data_from_csv(f):
     ret = []
     for row in rd:
         try:
-            ret.append(data_from_row(row))
+            entry = data_from_row(row)
+            if entry.yaw < 0:
+                continue
+            ret.append(entry)
         except KeyError:
             print("suspicous line:", row)
     return ret