This commit is contained in:
@@ -203,9 +203,9 @@ class FileDatasource:
|
||||
def _parse_acc(row: List[str]) -> Accelerometer:
|
||||
if len(row) < 3:
|
||||
raise ValueError(f"Accelerometer row must have 3 values (x,y,z). Got: {row}")
|
||||
x = int(float(row[0]))
|
||||
y = int(float(row[1]))
|
||||
z = int(float(row[2]))
|
||||
x = int(row[0])
|
||||
y = int(row[1])
|
||||
z = int(row[2])
|
||||
return Accelerometer(x=x, y=y, z=z)
|
||||
|
||||
@staticmethod
|
||||
@@ -222,4 +222,4 @@ class FileDatasource:
|
||||
float(s)
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user