Skip to content

Commit 7edfdff

Browse files
committed
import-null
1 parent cf2c370 commit 7edfdff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pslab/external/motor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def import_timeline_from_csv(self, filepath: str) -> List[List[int]]:
134134
for row in reader:
135135
angles = []
136136
for key in ["Servo1", "Servo2", "Servo3", "Servo4"]:
137-
value = row.get(key, "").strip().lower()
138-
if value in ("", "null", "none"):
137+
value = row[key]
138+
if value == "null":
139139
angles.append(None)
140140
else:
141141
angles.append(int(value))

0 commit comments

Comments
 (0)