Newer
Older
"""Contains util functions that could be used anywhere in the project."""
def lineToVector(line):
"""
Parses a line to an object with a vector.
:param line: The line that needs to be parsed, must contain a object followed by a numbers
:type line: str
:return: The object and its vector
:rtype: (str, [float])
"""
return lineSplit[0], [float(elem) for elem in lineSplit[1:]]