def cVectorToPython(x):
if isinstance(x[<NUM_LIT:0>], bool):<EOL><INDENT>return numpy.frombuffer(x, dtype=numpy.bool).copy()<EOL><DEDENT>elif isinstance(x[<NUM_LIT:0>], int):<EOL><INDENT>return numpy.frombuffer(x, dtype=numpy.int32).copy()<EOL><DEDENT>elif isinstance(x[<NUM_LIT:0>], float):<EOL><INDENT>return numpy.frombuffer(x, dtype=numpy.float64).copy()<EOL><DEDENT>elif isinstance(x[<NUM_LIT:0>].value, bytes):<EOL><INDENT>return [toPythonString(y) for y in x]<EOL><DEDENT>
Convert the c vector data into the correct python data type
(numpy arrays or strings)
:param x:
:return: