Convert a str(numpy array) representaion to a numpy array - Python
Try numpy.array([int(v) for v in your_str[1:-1].split()])
Let's say I have a numpy array a = numpy.array([1,2,3,4]). Now 
str(a) will give me "[1 2 3 4]". How do I convert the string "[1 2 3 4]" back to a numpy.array([1,2,3,4])?