"git@git.science.uu.nl:v.stenvers/MGP-Project.git" did not exist on "127ced62ba67e6b7ed76752fb41a737e53486a13"
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:]]