Files
joy-it-robot/csv_analyse.py
lade043 d80bf49905 Terminal control with robot lib (#5)
* imports and model described

* changed large parts of terminal Control to them using robotlib
therefore also added functions to robotlib

* bug fix

* debug

* debug

* bug fix

* bug fix

* bug fix

* sequence.csv for testing of -csv

* bug fix

* debug

* bug fix

* bug fix

* extreme positions weren't possible

* edited sequence.csv

* added function 'output'

* debug

* debug

* debug

* bug fix

* cleaned up

* added loop

* bug fix

* serialize and deserialize added

* bug fix

* bug fix

* bug fix

* Update .gitignore

terminalControl creates file to save last position, which will now not be uploaded

* Comment

* csv output added
2019-05-19 10:14:18 +02:00

15 lines
384 B
Python

import time
import csv
file = "sequence.csv"
with open(file) as f:
csv_reader = csv.reader(f, delimiter=',')
for row in csv_reader:
if "delay" in row[0]:
print("sleep " + row[0].split(" ")[1])
time.sleep(int(row[0].split(" ")[1]))
else:
for count, i in enumerate(row):
print(i)
print(count)