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