Rename modules

Rename modules with better name and move the arduino code to its own folder
This commit is contained in:
Marc-Antoine Lafreniere
2019-04-06 15:15:11 -04:00
parent 19e698e15e
commit 31c8ae3470
47 changed files with 27 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
def readIntFile(filePath):
"""
Read a matrix file
:param filePath: File path to read from
:return: The matrix in int
"""
completeFile = []
file = open(filePath, 'r')
lines = file.readlines()
file.close()
for line in lines:
tempArray = []
for val in line.split():
tempArray.append(int(val))
completeFile.append(tempArray)
return completeFile
def readStringFile(filePath):
"""
Read all lines of a file
:param filePath: File path to read from
:return: Array of all lines in the file
"""
file = open(filePath, 'r')
lines = file.readlines()
file.close()
return lines